CSS - Css Position W/ Repsect To Content
Good day,
I have a problem, as everyone else does... Please look at the following code, I'll then explain what my problem is. <style>#menu{float:right;}</style> <div id=main> Main Content <div id=menu>Testing menu area</div> <div> ok... now, I want the menu to be floated right... with the content before the id=menu to be displayed on the left with respect to the menu... an easy solution to this would be: <div id=main> <div id=menu>Testing menu area</div> Main Content <div> ... however, I want the 'Main Content' to be before the id=menu div tag for SEO purposes. Thuis, my problem is, I cannot do it. The id=menu is displayed floating right BELOW the 'Main Content' information. This is a problem. I want it floated on the SAME level as the Main Content, but the 'Main Content' to be displayed before the id=menu... Any help? Sorry if this isn't clear, it's hard to describe, but I'm hoping some of you CSS genious's wilil be able to understand it and offer me some advice. Thanks Similar TutorialsI want a footer that's at the bottom of the page. If there isn't much content that means it should be at the bottom of the screen and there will be no scrollbars. If there is tons of content then it should show after the content and only be visible if the user scrolls to the bottom of the page. This code shows what I'm after and the problem I'm hitting. Code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> <title>title</title> <style type="text/css"> body, html {margin: 0; padding: 0; height: 100%} #top {background: red; position: absolute; top: 0px; left: 0px; height: 50px; right: 0px;} #content {background: orange; margin: 50px 200px;} #leftNav {position: absolute; left: 0px; top: 50px; bottom: 50px; width: 200px; background: yellow} #rightNav {position: absolute; right: 0px; top: 50px; bottom: 50px; width: 200px; background: cyan} #bottom {background:green; position: absolute; bottom: 0px; left: 0px; height: 50px; right: 0px;} </style> </head> <body> <div id="content"> Content<br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /> </div> <div id="leftNav"> LeftCol </div> <div id="rightNav"> rightNav </div> <div id="top"> I'm at the top. </div> <div id="bottom"> I'm at the bottom. </div> </body> </html> Appreciate your thoughts. Hello! I'm pretty new to CSS and to this forum, but I am having a problem with my website. My layout uses a centered content div using auto margins and all the positioning in the layout is done using relative positioning. The centered content div is 800px wide and is supposed to be centered in every page on the site. However, when I switch between certain pages on the site, I'll notice that the content div will shift a bit to the left. I've tried to trouble shoot this many times and can't seem to figure out what the problem is. Does anyone know how I can fix this? I wanted to post the website so you could see an example of the problem, but I'm not allowed to do so. It's not for self-promotion just so I can fix a problem. Anyway hopefully someone can help without seeing the site. Thanks! ok at Rodoslovlje I have an issue. The menu on the left is most of the times longer then the right content part. Is there a way to fix that when this occurs I can make the right part move along without editing every page and hitting enter 20 times? Thnx I have having issues with IE displaying my page wrong. The page is http://]http://tampabay-online.org/cetr/about.php (or any page within that site) and the css can be found at http://tampabay-online.org/cetr/cetr.css It displays fine in Firefox and Opera but IE makes the content class lower from the top than the #right navigation bar (they should both be 20 pixels form the top) Any help much appreciated. Code: .content { position:relative; width:320px; margin-left: 125px; margin-top: 20px; border:1px solid black; background-color:white; padding:10px; z-index:3; } #right { position:absolute; width:200px; top:20px; left:500px; border:1px solid black; background-color:white; padding:10px; z-index:1; } Hi there, I have a content glider script, but I have added it to a wrapper with a background image. The css is using a white background colour so when a new layer is glided up, it covers the one underneath it. However, I want the background to be transparent to show the background image underneath.... If I remove the white background, they layers become transparent and overlay each other, so you can see all text in the layers on top of each other making it impossible to read. Is there anyway I can make it so it has a transparent background, but so it will not show the content under the new slide? This is my CSS: PHP Code: .glidecontentwrapper{ position: relative; /* Do not change this value */ height: 230px; /* Set height to be able to contain height of largest content shown*/ overflow: hidden; } /* Total wrapper width: 350px+5px+5px=360px Or width of wrapper div itself plus any left and right CSS border and padding Adjust related containers below according to comments */ .glidecontent{ /*style for each glide content DIV within wrapper.*/ position: absolute; /* Do not change this value */ background: white; visibility: hidden; width: 330px; } /* Total glidecontent width: 330px+10px+10px=350px Or width of wrapper div itself (not counting wrapper border/padding) */ .glidecontenttoggler{ /*style for DIV used to contain toggler links. */ width: 360px; margin-top: 6px; text-align: center; /*How to align pagination links: "left", "center", or "right" background: white; /*always declare an explicit background color for fade effect to properly render in IE*/ } Any help would be great! Thanks. Well I managed to find a partial solution by adding "clear" to the "statusDiv" like so: Code: .statusDiv { clear: both background-image: url(../png/disclosure_triangles/blue_block.png); height: 20px; margin-bottom: 1px; } This kicks sibling divs onto their own line (which is what I wanted) but the spacing between divs is 2 pixels and I can't seem to find any combination of padding, margins etc to get the spacing down to one pixel. Does anyone know of a way to control the inter-div spacing when "clear" is defined? Thanks Ken --------------------------------------------------------------- Original post --------------------------------------------------------------- I'm trying to make a few divs to create the same basic functionality as an outline (with disclosure triangles etc...) and am having alignment problems. The first row renders perfectly but the text of subsequent rows overlaps the text of first row. Here's the html: Code: <div id="contentBlock" class="bodyText"> <div class='statusDiv'> <div class='disclosureCollapsed'></div> <div class="disclosureDivLabel">New</div> </div> <div class='statusDiv'> <div class='disclosureCollapsed'></div> <div class="disclosureDivLabel">Open</div> </div> </div> And here's the CSS: Code: #contentBlock { position: absolute; top: 130px; left: 200px; height: 101%; /* Hack to force vertical scroll bars */ right: 280px; min-width: 400px; visibility: visible; display: block; } .statusDiv { clear: both background-image: url(../png/disclosure_triangles/blue_block.png); height: 20px; margin-bottom: 1px; } .disclosureCollapsed { background-image: url(../png/disclosure_triangles/blue_collapsed_wide.png); display: block; text-align: right; /*position: absolute;*/ float: left; top: 0px; left: 0px; width: 18px; height: 20px; } .disclosureCollapsed:hover { cursor: pointer; } How would I make the text in each subsequent row (statusDiv) line up? Thanks for any help Ken http://www.hybridillusions.com/wordpress/?m=200712 Still working on it, but something caught me and I'm clueless. See, I'm still learning Tableless CSS, and well... I'm not sure how to have it so that the content doesn't run over the footer like that. As it should be more like... http://www.hybridillusions.com/wordpress/ For CSS reference, here is where the css file is located: http://www.hybridillusions.com/wordpress/wp-content/themes/simplistic/style.css Thanks in advance! Hei ppl. i am begenning of designing in css but i have a problem.. i have my website www.zyxep.net/byensguf/ i have that div in the bottom under the text "footer" that <div> do i need to get over the header image to the right.. so the right side of the login field is flush with the right side of the border.. and i need it to stay on that position in every size of the users screen.. min. 800x600 max. anything.. here is my css code: Code: body { text-align: center; /* center things in pre-IE6 */ margin: 0px auto; } #container { margin: 0px auto; left:150px; top:0px; width:760px; height:420px; z-index:1; border-left: 1px solid black; border-right: 1px solid black; } #header { margin: 0px auto; left:0px; top:0px; width:760px; height:200px; z-index:2; background-image: url(images/logo.jpg); border-bottom: 1px solid black; } #menu { margin: 0px auto; left:0px; top:200px; width:760px; height:20px; z-index:3; border-bottom: 1px solid black; } #content { margin: 0px auto; left:0px; top:220px; width:760px; height:180px; z-index:4; border-bottom: 1px solid black; } #footer { margin: 0px auto; left:0px; top:400px; width:760px; height:20px; z-index:5; } #login { margin: 0px auto; left:760px; top:15px; width:400px; height:50px; z-index:6; } #username { width: 100px; background-color: transparent; border: 1px solid black; } #password { width: 100px; background-color: transparent; border: 1px solid black; } #loginsubmit { width: 100px; background-color: transparent; border: 1px solid black; } and my index.php Code: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML> <HEAD> <TITLE>ByensGuf.dk - Byens bedste guf</TITLE> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <META NAME="Generator" CONTENT="EditPlus"> <META NAME="Author" CONTENT="zyxep"> <META NAME="Keywords" CONTENT="zyxep, zyxep.net, portfolio"> <META NAME="Description" CONTENT="zyxep.net - portfolio"> <meta name="REVISIT-AFTER" content="1 DAYS"> <LINK REL="stylesheet" HREF="style.css" TYPE="text/css"> </head> <body> <div id="container"> <div id="header"></div> <div id="menu">menu</div> <div id="content">content</div> <div id="footer">Footer</div> <div id="login"> <form action="login.php" method="post"> <div> <input type="text" name="username" id="username"> <input type="password" name="password" id="password"> <input type="submit" value="login" id="loginsubmit"> </div> </form></div> </div> </body> </html> plz help me.. i am so confused Hello, I am having trouble understanding the positioning within CSS. I.E. the relative/absolute positions. I am creating a site with 1 banner and 2 columns underneath, all centered. The 2nd column I want to be right beside the left coumn. so it simply goes like So depending on where left is on the page, the main is always literally right beside it. Anyone have any suggested reads on this? How to make div stick to top of a page and align center Hi guys, I have a Photoshop sliced page. Needed to create a login area. Inserting a form tag sent all sliced images running for the hills...lol. I solved this with a div tag. Now the problem is that the text boxes for Username and Password do not alling correctly in all resolutions. It is as if the text boxes are floating, not anchored to the specified XY position. For example on the design PC IE7 all looks good. On my laptop also with IE7 text boxes are slightly to the right of where they should be. I am wandering if any one could help please. My code is below. Thanks. Code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html> <head> <title>Customer Zone</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <script src="../../Scripts/AC_RunActiveContent.js" type="text/javascript"></script> <style type="text/css"> <!-- body { background-image: url(../background.jpg); } #apDiv1 { position:absolute; width:164px; height:147px; z-index:1; left: 560px; top: 498px; float:none } .AccountNumber { font-size: 9px; font-style: normal; background-color: #151515; height: 19px; width: 148px; border: 1px solid #5C5C5C; font-family: Verdana, Arial, Helvetica, sans-serif; color: #999999; text-align: center; vertical-align: middle; } .EnterButton { top: 3px; right: 7px; position: relative; left: 92px; bottom: 20px; } .CheckButton { height: 10px; width: 10px; top: 75px; bottom: 15px; right: 10px; position: absolute; left: 0px; } .style1 { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 9px; position: absolute; left: 11px; top: 75px; right: 10px; bottom: 15px; color: #999999; } --> </style> </head> <body bgcolor="#FFFFFF" topmargin="0" marginheight="0"> <!-- ImageReady Slices (customerzone.psd) --> <table width="777" height="681" border="0" align="center" cellpadding="0" cellspacing="0" id="Table_01"> <tr> <td colspan="30"> <img src="images/up.jpg" width="776" height="24" alt="" /></td> <td> <img src="images/spacer.gif" width="1" height="24" alt="" /></td> </tr> <tr> <td colspan="12"> <img src="images/logos.jpg" width="215" height="157" alt="" /></td> <td rowspan="43"> <img src="images/r2.jpg" width="7" height="567" alt="" /></td> <td colspan="16" rowspan="7"><script type="text/javascript"> AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','width','524','height','292','src','../../../flash/6048','quality','high','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movie','../../../flash/6048' ); //end AC code </script><noscript><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="524" height="292"> <param name="movie" value="../../../flash/6048.swf" /> <param name="quality" value="high" /> <embed src="../../../flash/6048.swf" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="524" height="292"></embed> </object></noscript></td> <td rowspan="46"> <img src="images/customerzone_05.jpg" width="30" height="656" alt="" /></td> <td> <img src="images/spacer.gif" width="1" height="157" alt="" /></td> </tr> <tr> <td colspan="12"> <img src="images/q1.jpg" width="215" height="7" alt="" /></td> <td> <img src="images/spacer.gif" width="1" height="7" alt="" /></td> </tr> <tr> <td rowspan="2"> <img src="images/q1-08.jpg" width="30" height="107" alt="" /></td> <td colspan="2"> <img src="images/x10.jpg" width="59" height="94" alt="" /></td> <td colspan="9" rowspan="2"> <img src="images/q1-10.jpg" width="126" height="107" alt="" /></td> <td> <img src="images/spacer.gif" width="1" height="94" alt="" /></td> </tr> <tr> <td colspan="2"> <img src="images/q1-11.jpg" width="59" height="13" alt="" /></td> <td> <img src="images/spacer.gif" width="1" height="13" alt="" /></td> </tr> <tr> <td colspan="12"> <img src="images/q2.jpg" width="215" height="7" alt="" /></td> <td> <img src="images/spacer.gif" width="1" height="7" alt="" /></td> </tr> <tr> <td colspan="12"> <img src="images/q3.jpg" width="215" height="5" alt="" /></td> <td> <img src="images/spacer.gif" width="1" height="5" alt="" /></td> </tr> <tr> <td colspan="12" rowspan="4"> <img src="images/lnews.jpg" width="215" height="24" alt="" /></td> <td> <img src="images/spacer.gif" width="1" height="9" alt="" /></td> </tr> <tr> <td colspan="16"> <img src="images/hr.jpg" width="524" height="12" alt="" /></td> <td> <img src="images/spacer.gif" width="1" height="12" alt="" /></td> </tr> <tr> <td colspan="10"> <img src="images/customerzone_15.jpg" width="335" height="2" alt="" /></td> <td colspan="5" rowspan="6"> <img src="images/h1.jpg" width="176" height="21" alt="" /></td> <td rowspan="33"> <img src="images/customerzone_17.jpg" width="13" height="258" alt="" /></td> <td> <img src="images/spacer.gif" width="1" height="2" alt="" /></td> </tr> <tr> <td colspan="2" rowspan="8"> <img src="images/customerzone_18.jpg" width="18" height="67" alt="" /></td> <td rowspan="3"> <img src="images/1.jpg" width="10" height="8" alt="" /></td> <td colspan="7" rowspan="8"> <img src="images/customerzone_20.jpg" width="307" height="67" alt="" /></td> <td> <img src="images/spacer.gif" width="1" height="1" alt="" /></td> </tr> <tr> <td colspan="12"> <img src="images/a1.jpg" width="215" height="4" alt="" /></td> <td> <img src="images/spacer.gif" width="1" height="4" alt="" /></td> </tr> <tr> <td colspan="12" rowspan="2"> <img src="images/customerzone_22.jpg" width="215" height="5" alt="" /></td> <td> <img src="images/spacer.gif" width="1" height="3" alt="" /></td> </tr> <tr> <td rowspan="5"> <img src="images/customerzone_23.jpg" width="10" height="59" alt="" /></td> <td> <img src="images/spacer.gif" width="1" height="2" alt="" /></td> </tr> <tr> <td colspan="2" rowspan="10"> <img src="images/customerzone_24.jpg" width="32" height="117" alt="" /></td> <td colspan="3" rowspan="7"> <img src="images/sunset.jpg" width="59" height="90" alt="" /></td> <td colspan="7" rowspan="2"> <img src="images/customerzone_26.jpg" width="124" height="17" alt="" /></td> <td> <img src="images/spacer.gif" width="1" height="9" alt="" /></td> </tr> <tr> <td colspan="5"> <img src="images/customerzone_27.jpg" width="176" height="8" alt="" /></td> <td> <img src="images/spacer.gif" width="1" height="8" alt="" /></td> </tr> <tr> <td rowspan="8"> <img src="images/customerzone_28.jpg" width="8" height="100" alt="" /></td> <td> <img src="images/sdc.jpg" width="8" height="7" alt="" /></td> <td colspan="5" rowspan="6"> <img src="images/customerzone_30.jpg" width="108" height="78" alt="" /></td> <td rowspan="26"> <img src="images/customerzone_31.jpg" width="8" height="229" alt="" /></td> <td rowspan="3"> <img src="images/s1.jpg" width="50" height="50" alt="" /></td> <td colspan="3" rowspan="20"> <img src="images/customerzone_33.jpg" alt="" width="118" height="207" border="0" usemap="#Map" /></td> <td> <img src="images/spacer.gif" width="1" height="7" alt="" /></td> </tr> <tr> <td rowspan="7"> <img src="images/customerzone_34.jpg" width="8" height="93" alt="" /></td> <td> <img src="images/spacer.gif" width="1" height="33" alt="" /></td> </tr> <tr> <td rowspan="24"> <img src="images/customerzone_35.jpg" width="15" height="189" alt="" /></td> <td colspan="5" rowspan="11"> <img src="images/pic1.jpg" width="161" height="105" alt="" /></td> <td colspan="3" rowspan="11"> <img src="images/dx.jpg" width="153" height="105" alt="" /></td> <td rowspan="24"> <img src="images/customerzone_38.jpg" width="6" height="189" alt="" /></td> <td> <img src="images/spacer.gif" width="1" height="10" alt="" /></td> </tr> <tr> <td> <img src="images/customerzone_39.jpg" width="50" height="13" alt="" /></td> <td> <img src="images/spacer.gif" width="1" height="13" alt="" /></td> </tr> <tr> <td rowspan="6"> <img src="images/s2.jpg" alt="" width="50" height="49" border="0" usemap="#Map2" /></td> <td> <img src="images/spacer.gif" width="1" height="10" alt="" /></td> </tr> <tr> <td colspan="3" rowspan="3"> <img src="images/customerzone_41.jpg" width="59" height="27" alt="" /></td> <td> <img src="images/spacer.gif" width="1" height="5" alt="" /></td> </tr> <tr> <td rowspan="2"> <img src="images/customerzone_42.jpg" width="38" height="22" alt="" /></td> <td colspan="2"> <img src="images/more.jpg" width="60" height="15" alt="" /></td> <td colspan="2" rowspan="2"> <img src="images/customerzone_44.jpg" width="10" height="22" alt="" /></td> <td> <img src="images/spacer.gif" width="1" height="15" alt="" /></td> </tr> <tr> <td colspan="2"> <img src="images/customerzone_45.jpg" width="60" height="7" alt="" /></td> <td> <img src="images/spacer.gif" width="1" height="7" alt="" /></td> </tr> <tr> <td colspan="11"> <img src="images/beetwen.jpg" width="214" height="4" alt="" /></td> <td rowspan="21"> <img src="images/customerzone_47.jpg" width="1" height="137" alt="" /></td> <td> <img src="images/spacer.gif" width="1" height="4" alt="" /></td> </tr> <tr> <td colspan="11" rowspan="2"> <img src="images/customerzone_48.jpg" width="214" height="13" alt="" /></td> <td> <img src="images/spacer.gif" width="1" height="8" alt="" /></td> </tr> <tr> <td rowspan="2"> <img src="images/customerzone_49.jpg" width="50" height="10" alt="" /></td> <td> <img src="images/spacer.gif" width="1" height="5" alt="" /></td> </tr> <tr> <td colspan="2" rowspan="18"> <img src="images/customerzone_50.jpg" width="32" height="120" alt="" /></td> <td colspan="2" rowspan="9"> <img src="images/duck.jpg" width="58" height="90" alt="" /></td> <td colspan="7" rowspan="11"> <img src="images/customerzone_52.jpg" width="124" height="98" alt="" /></td> <td> <img src="images/spacer.gif" width="1" height="5" alt="" /></td> </tr> <tr> <td rowspan="4"><img src="images/s3.jpg" width="50" height="49" alt="" /></td> <td> <img src="images/spacer.gif" width="1" height="23" alt="" /></td> </tr> <tr> <td colspan="8"> <img src="images/customerzone_54.jpg" width="314" height="3" alt="" /></td> <td> <img src="images/spacer.gif" width="1" height="3" alt="" /></td> </tr> <tr> <td rowspan="12"><div id="apDiv1" style=".UserNamePassword"> <form action="../../security/redirect.php" method="post" name="UserAccess" id="UserAccess"> <p> <input name="username" type="text" class="AccountNumber" id="AccountNumber" maxlength="16"> </p> <p> <input name="password" type="password" class="AccountNumber" id="Password" maxlength="16"> <br> <INPUT NAME="submit" TYPE="image" class="EnterButton" VALUE="Login" src="images/customerzone_75.jpg"> <font size="1" color="#5c5c5c"> <input name="remember" type="checkbox" class="CheckButton" value="Yes"> </font> </font> <span class="style1">Remember Me</span> </form> </div> <img src="images/customerzone_55.jpg" width="3" height="81" alt="" /></td> <td colspan="3"> <img src="images/customerzone_56.jpg" width="148" height="18" alt="" /></td> <td colspan="4" rowspan="7"> <img src="images/customerzone_57.jpg" width="163" height="65" alt="" /></td> <td> <img src="images/spacer.gif" width="1" height="18" alt="" /></td> </tr> <tr> <td colspan="3" rowspan="3"> <img src="images/customerzone_58.jpg" width="148" height="22" alt="" /></td> <td> <img src="images/spacer.gif" width="1" height="5" alt="" /></td> </tr> <tr> <td> <img src="images/customerzone_59.jpg" width="50" height="8" alt="" /></td> <td> <img src="images/spacer.gif" width="1" height="8" alt="" /></td> </tr> <tr> <td rowspan="8"> <img src="images/s4.jpg" width="50" height="49" alt="" /></td> <td> <img src="images/spacer.gif" width="1" height="9" alt="" /></td> </tr> <tr> <td colspan="3"> <img src="images/customerzone_61.jpg" width="148" height="17" alt="" /></td> <td> <img src="images/spacer.gif" width="1" height="17" alt="" /></td> </tr> <tr> <td colspan="3" rowspan="3"> <img src="images/customerzone_62.jpg" width="148" height="10" alt="" /></td> <td> <img src="images/spacer.gif" width="1" height="2" alt="" /></td> </tr> <tr> <td colspan="2" rowspan="9"> <img src="images/customerzone_63.jpg" width="58" height="30" alt="" /></td> <td rowspan="6"> <img src="images/customerzone_64.jpg" width="49" height="22" alt="" /></td> <td> <img src="images/customerzone_65.jpg" width="60" height="6" alt="" /></td> <td rowspan="6"> <img src="images/customerzone_66.jpg" width="9" height="22" alt="" /></td> <td> <img src="images/spacer.gif" width="1" height="6" alt="" /></td> </tr> <tr> <td colspan="2" rowspan="5"> <img src="images/customerzone_67.jpg" width="94" height="16" alt="" /></td> <td rowspan="2"> <img src="images/customerzone_68.jpg" width="55" height="8" alt="" /></td> <td rowspan="5"> <img src="images/customerzone_69.jpg" width="14" height="16" alt="" /></td> <td rowspan="5"> <img src="images/customerzone_70.jpg" width="60" height="16" alt="" /></td> <td> <img src="images/spacer.gif" width="1" height="2" alt="" /></td> </tr> <tr> <td colspan="4" rowspan="7"> <img src="images/customerzone_71.jpg" width="55" height="22" alt="" /></td> <td rowspan="2"> <img src="images/customerzone_72.jpg" width="58" height="11" alt="" /></td> <td colspan="2" rowspan="7"> <img src="images/customerzone_73.jpg" width="11" height="22" alt="" /></td> <td colspan="2" rowspan="4"> <img src="images/customerzone_74.jpg" width="92" height="14" alt="" /></td> <td rowspan="2"> <img src="images/customerzone_75.jpg" width="56" height="11" alt="" /></td> <td> <img src="images/spacer.gif" width="1" height="6" alt="" /></td> </tr> <tr> <td rowspan="3"> <img src="images/customerzone_76.jpg" width="55" height="8" alt="" /></td> <td> <img src="images/spacer.gif" width="1" height="5" alt="" /></td> </tr> <tr> <td rowspan="5"> <img src="images/customerzone_77.jpg" width="58" height="11" alt="" /></td> <td rowspan="2"> <img src="images/customerzone_78.jpg" width="56" height="3" alt="" /></td> <td> <img src="images/spacer.gif" width="1" height="2" alt="" /></td> </tr> <tr> <td> <img src="images/customerzone_79.jpg" width="50" height="1" alt="" /></td> <td> <img src="images/spacer.gif" width="1" height="1" alt="" /></td> </tr> <tr> <td colspan="16"> <img src="images/tak.jpg" width="524" height="3" alt="" /></td> <td> <img src="images/spacer.gif" width="1" height="3" alt="" /></td> </tr> <tr> <td colspan="16" rowspan="2"> <img src="images/ss.jpg" width="524" height="5" alt="" /></td> <td> <img src="images/spacer.gif" width="1" height="2" alt="" /></td> </tr> <tr> <td> <img src="images/r1.jpg" width="7" height="3" alt="" /></td> <td> <img src="images/spacer.gif" width="1" height="3" alt="" /></td> </tr> <tr> <td colspan="12"> <img src="images/over.jpg" width="215" height="22" alt="" /></td> <td colspan="17"> <img src="images/ddd.jpg" width="531" height="22" alt="" /></td> <td> <img src="images/spacer.gif" width="1" height="22" alt="" /></td> </tr> <tr> <td colspan="29"> <img src="images/customerzone_85.jpg" alt="" width="746" height="64" border="0" usemap="#Map3" /></td> <td> <img src="images/spacer.gif" width="1" height="64" alt="" /></td> </tr> <tr> <td> <img src="images/spacer.gif" width="30" height="1" alt="" /></td> <td> <img src="images/spacer.gif" width="2" height="1" alt="" /></td> <td> <img src="images/spacer.gif" width="57" height="1" alt="" /></td> <td> <img src="images/spacer.gif" width="1" height="1" alt="" /></td> <td> <img src="images/spacer.gif" width="1" height="1" alt="" /></td> <td> <img src="images/spacer.gif" width="8" height="1" alt="" /></td> <td> <img src="images/spacer.gif" width="8" height="1" alt="" /></td> <td> <img src="images/spacer.gif" width="38" height="1" alt="" /></td> <td> <img src="images/spacer.gif" width="58" height="1" alt="" /></td> <td> <img src="images/spacer.gif" width="2" height="1" alt="" /></td> <td> <img src="images/spacer.gif" width="9" height="1" alt="" /></td> <td> <img src="images/spacer.gif" width="1" height="1" alt="" /></td> <td> <img src="images/spacer.gif" width="7" height="1" alt="" /></td> <td> <img src="images/spacer.gif" width="15" height="1" alt="" /></td> <td> <img src="images/spacer.gif" width="3" height="1" alt="" /></td> <td> <img src="images/spacer.gif" width="10" height="1" alt="" /></td> <td> <img src="images/spacer.gif" width="82" height="1" alt="" /></td> <td> <img src="images/spacer.gif" width="56" height="1" alt="" /></td> <td> <img src="images/spacer.gif" width="10" height="1" alt="" /></td> <td> <img src="images/spacer.gif" width="84" height="1" alt="" /></td> <td> <img src="images/spacer.gif" width="55" height="1" alt="" /></td> <td> <img src="images/spacer.gif" width="14" height="1" alt="" /></td> <td> <img src="images/spacer.gif" width="6" height="1" alt="" /></td> <td> <img src="images/spacer.gif" width="8" height="1" alt="" /></td> <td> <img src="images/spacer.gif" width="50" height="1" alt="" /></td> <td> <img src="images/spacer.gif" width="49" height="1" alt="" /></td> <td> <img src="images/spacer.gif" width="60" height="1" alt="" /></td> <td> <img src="images/spacer.gif" width="9" height="1" alt="" /></td> <td> <img src="images/spacer.gif" width="13" height="1" alt="" /></td> <td> <img src="images/spacer.gif" width="30" height="1" alt="" /></td> <td></td> </tr> </table> <div align="center"> <!-- End ImageReady Slices --> </div> <map name="Map"><area shape="rect" coords="-48,81,51,89" href="mailto:info@raeonimages.com" /> </map> <map name="Map2"><area shape="rect" coords="12,16,53,28" href="mailto:info@raeonimages.com" /> </map> <map name="Map3"><area shape="rect" coords="622,8,704,23" href="../termsandconditions/termsandconditions.html" /> </map></body> </html> Is it possible to position something below a division that has the property { position: absolute } and can expand to a varied length depending on what is contained with it? Hello all, I have the following: Code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title>Untitled Document</title> <style type="text/css"> .news-list-container { clear: both; } .news-list-item { padding:6px; padding-left: 0; padding-top: 10px; clear: both; } /* end .news-list-item */ .news-list-item-left { float: left; } .news-list-item-left img { margin-right: -62px; } .news-list-item-right { vertical-align: middle; margin-left: 72px; width: 444px; float: left; } /* end .news-list-item-right */ .news-list-item-right a { font-size: 1.1em; } </style> </head> <body> <div class="news-list-container research-list-container"> <div class="news-list-item research-list-item"> <div class="news-list-item-left"><img src="img.jpg" width="63" height="43" alt="" title="" /></div> <div class="news-list-item-right"> <a href="#">Link 1</a> <p>Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test</p> </div> </div> <div class="news-list-item research-list-item"> <div class="news-list-item-left"><img src="#" width="63" height="43" alt="" title="" /></div> <div class="news-list-item-right"> <a href="#">Link 2</a> <p>Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Tes</p> </div> </div> <div class="news-list-item research-list-item"> <div class="news-list-item-left"></div> <div class="news-list-item-right"> <a href="#">Link 3</a> <p>Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test T</p> </div> </div> <div class="news-list-browse research-list-browse"></div> </div> </body> </html> This is code generated by a CMS. Notice that in the last case, there is no image which can happen. I would like to appear so that text always lines up even when there is no image to appear. This code works correctly in all browsers except IE6. IE6 makes the image appear really thin which is due to the negative margin. Is there a way to overcome this for IE6? Should I be using a different approach for this? I'm having an issue using position: relative in IE6. Basically I'm doing this: Code: <style> .class1 { width: 900px; padding: 0px; margin: 0 auto 0 auto; } .floatimg { position: relative; top: -200px; left: 0px; padding: 0px; margin: 0px; } </style> <div class="class1"> <img class="floatimg" src="foo.gif" /> <p>Some text.</p> </div> So, basically I'm trying to move the image up a bit in the div. This works in the latest firefox and IE7, but in IE6 the image moves up, but the text does not. It stays as if the image had not been moved and this leaves a big gap. If you look at that page in IE6 you'll see the image with the woman is misaligned. It looks fine in FF and IE7. I'm not sure what I need to do to get it to align in IE6. This isn't my site design and frankly the CSS is a mess (too many css includes, etc), so I'm actually pretty lost as to how to fix this. Does it have something to do with the #leftcontent being absolute positioned? Hi, I have 2 divs. The first one is set to a specific width and height. The second one varies in size. The problem is that I need the second div to sit on top the first, and the page to position itself according to the first div. Here's an example:http://www.caillouette.com/testSite/index2.php The blank image will be white, but it's dark grey for demonstration purposes. here's the CSS: Code: .big_image{ z-index:9; position:absolute; left:0px; top:0px; margin: 5px 0x 0px 27px; } .big_image_blank{ z-index:0; position:relative; width:262px; height:262px; background-image: url(images/Uploads/Listings/blank.jpg); margin: 5px 0x 0px 27px; } Hi I have just read this Quote: Using CSS to position text and graphics absolutly, relatively and overlapping elements such as text and images. Includes the best way of overlapping text Can some one tell me therefore if it is possible to explicitly specify the position to place an animated gif on top of an existing image with an image map; almost as a marker. Thanks for your help Rob |