Last edited by design; 07-25-2005 at 01:36 AM.
You might be able to do something like this:
Play around with the "10 10" values to get the right posisition ("0 0" is top left corner of body).
background: url(deilogo.gif) 10 10 no-repeat #ffffcc;
color : #000000;
font-family : "times new roman", serif;
Last edited by design; 07-25-2005 at 01:35 AM.
Thought of a better way. In your stylesheet, keep the body definition as you had it originally. Add the following style element:
In your HTML, change the TD that currently has the image to this:
background: url(deilogo.gif) 0 0 no-repeat #ffffcc;
Last edited by design; 07-25-2005 at 01:37 AM.
Re: Placement of an image inside a table in CSS
Hmmm..., the default setting for most browsers is to not print background images. The best workaround, probably, is to leave it as an IMG object in your table the way you originally had it.
Originally posted by design
When I do a print preview it does not show the image. How can I get around this?
This is where using "server-side includes" (SSI) could help you. You could put the whole top navigation table into a separate file, then just include it into each of the site's pages with one include command. I do this on my site by using PHP server-side scripting. You can get the same general effect by using an HTML include...
...at the point in each file where you want that HTML to be included.
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)