PDA

View Full Version : Disapering images


Bonzo
07-28-04, 03:44 PM
Second go - must learn to save post before trying to edit peview :(

Problem = If I use an align=".. in the image call the image is hidden behind the content <div> instead of being in the <div>.

Cant use a table as this screws up Netscape and I need the align to force the image to one side so the text will be on the otherside of the page.

Part of the css below - Original writer did not reply to email; so I am on my own.

I have a bodge at #logo to force the image to the top.

Some of the pages here should have an image but its missing. http://www.b-secure.biz/new_site/crime_prevent/crimep.php

This is the main page with the image forced to the top http://www.b-secure.biz/new_site/

Can anyone help me out ?

Anthony

/* From http://bluerobot.com/web/layouts/layout3.html */
body {
color:#000000;
background-color:#99FFFF;
margin:20px;
padding:0px;
font:14px verdana, arial, helvetica, sans-serif;
}

/* All the content boxes belong to the content class. */
#content {
position:relative; /* Position is declared "relative" to gain control of stacking order (z-index). */
width:auto;
min-width:120px;
margin:0px 10px 20px 200px;
border:1px solid black;
background-color:white;
padding:10px;
z-index:2; /* This allows the content to overlap the right menu in narrow windows in good browsers. */
}

#logo {
position:absolute; /* Position is declared "relative" to gain control of stacking order (z-index). */
width:auto;
top:5px;
left:0px;
background-color:white;
padding:10px;
z-index:2; /* This allows the content to overlap the right menu in narrow windows in good browsers. */
}

#navAlpha {
position:absolute;
width:168px;
top:20px;
left:20px;
border:1px solid black;
background-color:white;
padding:10px;
z-index:1;

/* Here is the ugly brilliant hack that protects IE5/Win from its own stupidity.
Thanks to Tantek Celik for the hack and to Eric Costello for publicizing it.
IE5/Win incorrectly parses the "\"}"" value, prematurely closing the style
declaration. The incorrect IE5/Win value is above, while the correct value is
below. See http://glish.com/css/hacks.asp for details. */
voice-family: "\"}\"";
voice-family:inherit;
width:156px;
}
/* I've heard this called the "be nice to Opera 5" rule. Basically, it feeds correct
length values to user agents that exhibit the parsing error exploited above yet get
the CSS box model right and understand the CSS2 parent-child selector. ALWAYS include
a "be nice to Opera 5" rule every time you use the Tantek Celik hack (above). */
body>#navAlpha {width:157px;}

AmberLR
08-05-04, 11:09 PM
Try using float instead of align