Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

AspDotNetStoreFront
  Ads  
Active Modules -- Active Forums for DotNetNuke
 


  Sponsors  

Meet Our Sponsors

Verndale
The Official Microsoft ASP.NET Website
Portal Webhosting - Hosting For Developers
Red-Gate Software
MaximumASP
SourceGear - Tools for Developers
 


DotNetNuke Forums
 
  Forum  DotNetNuke® Pro...  HTML / Text Mo...  image in table
Previous Previous
 
Next Next
New Post 2/11/2006 1:29 AM
User is offline Bill Clone
85 posts
10th Ranked


image in table 

I have a table, and I want to insert an image in the background like this:

<TD style="BACKGROUND-IMAGE: url(MyBGimage.gif)" vAlign=center align=middle height=17>I write a few words here</TD>

That's not working cuz it requires an absolute path to MyBGimage.gif
So I added this in Page Settings > Advanced Settings > Page Header Tags:

<BASE href=http://localhost:1500/MyWebsiteRoot/Portals/0>

Problem is I'll have to replace this when I move the site to a remote server.
I tried with a relative path. Never try that. It changes the path to all the images of the site.
I also tried this:

<TD style="BACKGROUND-IMAGE: url(http://localhost:1500/MyWebsiteRoot/Portals/0/MyBGimage.gif)" vAlign=center align=middle height=17>I write a few words here</TD>

But it's not a clean solution.
So I wonder if it is possible to add a background image in a table in Text/HTML module.


DNN skins Forums
using Tressleworks modules
DNN & webhosting
 
New Post 2/13/2006 5:39 AM
User is offline Michael Flanakin
994 posts
www.michaelflanakin.com
7th Ranked




Re: image in table 
To the best of my knowledge, you're going to have this problem with any type of image in the Text/HTML block. I think you're just going to have to suck it up and type the absolute (or at least virtual directory relative) URL. Sorry to say that, but I think it's the only option. I'd love to hear others, tho, if anyone has any.

Michael Flanakin | Microsoft Consulting Services
www.michaelflanakin.com
 
Previous Previous
 
Next Next
  Forum  DotNetNuke® Pro...  HTML / Text Mo...  image in table
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, please observe the following posting guidelines:

1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


DNN SEO
Seablick Consulting specializes in DNN search engine optimization (SEO), DNN consulting, as well as support & training.
seablick.com
Intura Vision / Intura Enterprise
Point-of-Sale and business management applications targeted towards quick service, fast casual and delivery-based restaurant concepts.
www.intura.com
Dnaxp.Net
Dnaxp.Net offers a comprehensive base of information, resources, and support for DotNetNuke.
www.dnaxp.net

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP