CSS - Are Tables Still Usefull For Displaying Information?
Is it still OK for using tables to display information, and just leave the site layout to css?
Similar TutorialsCan anyone tell me why my popup menus are displaying with a 40 or 50 px wide gap between them and the top level menu on this page? The link Hover over "For Professionals" in the left hand navigation to see the problem. I am new to javascript. This is a menu created by DMAPI menu builder. I am not new to CSS. I suspect that this is a CSS problem. In Firebug I can see padding and margins but cannot find where they are being defined. I have tried to add margin: 0; and padding: 0; but they are getting overridden. Any help would be appreciated. I'm not confident enough with CSS to just use it, so I'm mixing it with some tables too. I want a layout with two tables next to each at the top and then another below. The two at the top are working fine, but the one below keeps jumping back up to the top. I've managed to get an ugly fix by putting in a load of <br> but this doesn't work in IE7 (unless I add a lot more, pushing the content way down in other browsers) and isn't much of a solution. The other problem I have is that I want to have the majority of my page with a white background, but to get a surrounding border I've set the body background to be a colour and then placed a div around all the content. I want this div to be the size of the page and so set it's height to 100%, but this makes it too small. Not sure why. Here is my code for my page and CSS. If anyone can help I'd be most grateful. Code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title></title> <link href="incl/default.css" rel="stylesheet" type="text/css" /> <script type="text/javascript"> <!-- function navon(num) { document.getElementById("nav" + num).style.backgroundColor = '#CDEB8B'; document.getElementById("nav" + num).style.paddingTop = '0px' document.getElementById("nav" + num).style.paddingBottom = '0px'; document.getElementById("nav" + num).style.borderTopWidth = '10px'; document.getElementById("nav" + num).style.borderBottomWidth = '10px'; } function navoff(num) { document.getElementById("nav" + num).style.backgroundColor = '#C3D9FF'; document.getElementById("nav" + num).style.paddingTop = '8px' document.getElementById("nav" + num).style.paddingBottom = '8px'; document.getElementById("nav" + num).style.borderTopWidth = '2px'; document.getElementById("nav" + num).style.borderBottomWidth = '2px'; } //--> </script> </head> <body> <div class="main"> <table width="29%" border="0" cellpadding="2" cellspacing="5" align="left"> <tr> <td><img src="" alt="" width="230" height="80" border="0" /></td> </tr> </table> <table width="70%" height="60px" border="0" cellpadding="2" cellspacing="5" align="right"> <tr> <td width="180px" class="nav" id="nav1" onmouseover="navon('1')" onmouseout="navoff('1')">link</td> <td width="180px" class="nav" id="nav2" onmouseover="navon('2')" onmouseout="navoff('2')">link</td> <td width="180px" class="nav" id="nav3" onmouseover="navon('3')" onmouseout="navoff('3')">link</td> <td width="180px" class="nav" id="nav4" onmouseover="navon('4')" onmouseout="navoff('4')">link</td> <td width="180px" class="nav" id="nav5" onmouseover="navon('5')" onmouseout="navoff('5')">link</td> </tr> </table> <br /><br /><br /><br /><br /><br /> <table width="100%" border="0" cellpadding="2" cellspacing="5" align="center"> <tr> <td width="70%"> some content </td> <td width="30%"> some more content </td> </tr> </table> </div> </body> </html> Code: @charset "utf-8"; /* CSS Document */ body { padding-right: 4%; padding-left: 4%; padding-top: 30px; padding-bottom: 30px; font-family: Arial, Helvetica, sans-serif; font-size: 14px; letter-spacing: 0.1em; color: #000000; background-color: #EEEEEE; } a:link { color: #000000; text-decoration: none; } a:visited { color: #000000; text-decoration: none; } a:active { color: #000000; text-decoration: none; } a:hover { color: #000000; text-decoration: underline; } .main { background:#FFFFFF; border: 10px solid #36393D; width: 89%; padding: 5%; } .nav { padding: 8px; background-color: #C3D9FF; vertical-align: middle; text-align: center; font-family: Geneva, Arial, Helvetica, sans-serif; font-size: 24px; color: #36393D; cursor:pointer; border: 2px solid #36393D; } on various forums i will notice that keywords will have a line under them, and when you roll over them they popup a description, how can i go about this? http://www.cssplay.co.uk/menu/lightbox In reference to this, I like to move the style information from the html into a css file. Since it's not completely working, I'm sure I'm missing something. I don't know a whole lot about CSS, so I'm hoping somewhere here can help me out...Here's what I have so far: CSS File: Code: /* ================================================================ This copyright notice must be untouched at all times. The original version of this stylesheet and the associated (x)html is available at http://www.cssplay.co.uk/menu/lightbox.html Copyright (c) 2005-2007 Stu Nicholls. All rights reserved. This stylesheet and the associated (x)html may be modified in any way to fit your requirements. =================================================================== */ <style type="text/css"> /* common styling */ a {color:#000;} a:hover {text-decoration:none;} a:visited {color:#000;} /* slides styling */ .photo {width:635px; text-align:left; position:relative; margin:0 auto;} .photo ul.topic {padding:0; margin:0; list-style:none; width:635px; height:auto; position:relative; z-index:10;} .photo ul.topic li {display:block; width:125px; height:31px; float:left;} .photo ul.topic li a.set {display:block; font-size:11px; width:124px; height:30px; text-align:center; line-height:30px; color:#DCD8BD; text-decoration:none; border:1px solid #fff; border-width:1px 1px 0 0; background:#7A9352; font-family:verdana, arial, sans-serif;} .photo ul.topic li a ul, .photo ul.topic li ul {display:none;} .photo ul.topic li.active a {color:#000; background:#DCD8BD;} .photo ul.topic li a:hover, .photo ul.topic li:hover a {color:#fff; background:#7A9352;} .photo ul.topic li.active ul {display:block; position:absolute; left:0; top:31px; list-style:none; padding:0; margin:0; height:375px; background:#ddd; width:464px; padding:40px 60px; border:20px solid #DCD8BD; z-index:1;} .photo ul.topic li a:hover ul, .photo ul.topic li:hover ul {display:block; position:absolute; left:0; top:31px; list-style:none; padding:0; margin:0; height:375px; background:#ddd; width:464px; padding:40px 60px; border:20px solid #7A9352; z-index:100;} .photo ul.topic li ul li {display:inline; width:112px; height:87px; float:left; border:1px solid #fff; margin:1px;} .photo ul.topic li ul li a {display:block; width:110px; height:85px; cursor:default; float:left; text-decoration:none; background:#444; border:1px solid #888;} .photo ul.topic li ul li a img {display:block; width:100px; height:75px; border:5px solid #eee;} .photo ul.topic li a:hover ul li a:hover, .photo ul.topic li:hover ul li a:hover {white-space:normal; position:relative;} .photo ul.topic li a:hover ul li a:hover img, .photo ul.topic li:hover ul li a:hover img {position:absolute; left:-50px; top:-32px; width:200px; height:150px; border-color:#fff;} </style> HTML File: Code: <head> <link rel="stylesheet" media="all" type="text/css" href="css/ALEXstyleimagegallery.css"> </head> <div class="photo"> <ul class="topic"> <li><a class="set" href="#Page%201">Page 1<!--[if gte IE 7]><!--></a><!--<![endif]--> <!--[if lte IE 6]><table><tr><td><![endif]--> <ul> <li><a href="http://www.cssplay.co.uk/menu/lbox/tree1.jpg"><img src="http://www.cssplay.co.uk/menu/lbox/portrait1a.jpg" alt="" title=""></a></li> <li><a href="lbox/portrait2.jpg"><img src="lbox/portrait2a.jpg" alt="" title=""></a></li> <li><a href="lbox/portrait3.jpg"><img src="lbox/portrait3a.jpg" alt="" title=""></a></li> <li><a href="lbox/portrait4.jpg"><img src="lbox/portrait4a.jpg" alt="" title=""></a></li> <li><a href="lbox/portrait5.jpg"><img src="lbox/portrait5a.jpg" alt="" title=""></a></li> <li><a href="lbox/portrait6.jpg"><img src="lbox/portrait6a.jpg" alt="" title=""></a></li> <li><a href="lbox/portrait7.jpg"><img src="lbox/portrait7a.jpg" alt="" title=""></a></li> <li><a href="lbox/portrait8.jpg"><img src="lbox/portrait8a.jpg" alt="" title=""></a></li> <li><a href="lbox/portrait9.jpg"><img src="lbox/portrait9a.jpg" alt="" title=""></a></li> <li><a href="lbox/portrait10.jpg"><img src="lbox/portrait10a.jpg" alt="" title=""></a></li> <li><a href="lbox/portrait11.jpg"><img src="lbox/portrait11a.jpg" alt="" title=""></a></li> <li><a href="lbox/portrait12.jpg"><img src="lbox/portrait12a.jpg" alt="" title=""></a></li> <li><a href="lbox/portrait13.jpg"><img src="lbox/portrait13a.jpg" alt="" title=""></a></li> <li><a href="lbox/portrait14.jpg"><img src="lbox/portrait14a.jpg" alt="" title=""></a></li> <li><a href="lbox/portrait15.jpg"><img src="lbox/portrait15a.jpg" alt="" title=""></a></li> <li><a href="lbox/portrait16.jpg"><img src="lbox/portrait16a.jpg" alt="" title=""></a></li> </ul> <!--[if lte IE 6]></td></tr></table></a><![endif]--> </li> <li class="active"><a class="set" href="#Landscapes">Landscapes<!--[if gte IE 7]><!--></a><!--<![endif]--> <!--[if lte IE 6]><table><tr><td><![endif]--> <ul> <li><a href="http://www.cssplay.co.uk/menu/lbox/tree1.jpg"><img src="http://www.cssplay.co.uk/menu/lbox/landscape1a.jpg" alt="" title=""></a></li> <li><a href="lbox/landscape2.jpg"><img src="lbox/landscape2a.jpg" alt="" title=""></a></li> <li><a href="lbox/landscape3.jpg"><img src="lbox/landscape3a.jpg" alt="" title=""></a></li> <li><a href="lbox/landscape4.jpg"><img src="lbox/landscape4a.jpg" alt="" title=""></a></li> <li><a href="lbox/landscape5.jpg"><img src="lbox/landscape5a.jpg" alt="" title=""></a></li> <li><a href="lbox/landscape6.jpg"><img src="lbox/landscape6a.jpg" alt="" title=""></a></li> <li><a href="lbox/landscape7.jpg"><img src="lbox/landscape7a.jpg" alt="" title=""></a></li> <li><a href="lbox/landscape8.jpg"><img src="lbox/landscape8a.jpg" alt="" title=""></a></li> <li><a href="lbox/landscape9.jpg"><img src="http://www.cssplay.co.uk/menu/lbox/tree1.jpg" alt="" title=""></a></li> <li><a href="lbox/landscape10.jpg"><img src="lbox/landscape10a.jpg" alt="" title=""></a></li> <li><a href="lbox/landscape11.jpg"><img src="lbox/landscape11a.jpg" alt="" title=""></a></li> <li><a href="lbox/landscape12.jpg"><img src="lbox/landscape12a.jpg" alt="" title=""></a></li> <li><a href="lbox/landscape13.jpg"><img src="lbox/landscape13a.jpg" alt="" title=""></a></li> <li><a href="lbox/landscape14.jpg"><img src="lbox/landscape14a.jpg" alt="" title=""></a></li> <li><a href="lbox/landscape15.jpg"><img src="lbox/landscape15a.jpg" alt="" title=""></a></li> <li><a href="lbox/landscape16.jpg"><img src="lbox/landscape16a.jpg" alt="" title=""></a></li> </ul> <!--[if lte IE 6]></td></tr></table></a><![endif]--> </li> <li><a class="set" href="#Flowers">Flowers<!--[if gte IE 7]><!--></a><!--<![endif]--> <!--[if lte IE 6]><table><tr><td><![endif]--> <ul> <li><a href="#flower1"><img src="http://www.cssplay.co.uk/menu/lbox/flower1.jpg" alt="" title=""></a></li> <li><a href="#flower2"><img src="lbox/flower2.jpg" alt="" title=""></a></li> <li><a href="#flower3"><img src="lbox/flower3.jpg" alt="" title=""></a></li> <li><a href="#flower4"><img src="lbox/flower4.jpg" alt="" title=""></a></li> <li><a href="#flower5"><img src="lbox/flower5.jpg" alt="" title=""></a></li> <li><a href="#flower6"><img src="lbox/flower6.jpg" alt="" title=""></a></li> <li><a href="#flower7"><img src="lbox/flower7.jpg" alt="" title=""></a></li> <li><a href="#flower8"><img src="lbox/flower8.jpg" alt="" title=""></a></li> <li><a href="#flower9"><img src="lbox/flower9.jpg" alt="" title=""></a></li> <li><a href="#flower10"><img src="lbox/flower10.jpg" alt="" title=""></a></li> <li><a href="#flower11"><img src="lbox/flower11.jpg" alt="" title=""></a></li> <li><a href="#flower12"><img src="lbox/flower12.jpg" alt="" title=""></a></li> <li><a href="#flower13"><img src="lbox/flower13.jpg" alt="" title=""></a></li> <li><a href="#flower14"><img src="lbox/flower14.jpg" alt="" title=""></a></li> <li><a href="#flower15"><img src="lbox/flower15.jpg" alt="" title=""></a></li> <li><a href="#flower16"><img src="lbox/flower16.jpg" alt="" title=""></a></li> </ul> <!--[if lte IE 6]></td></tr></table></a><![endif]--> </li> <li><a class="set" href="#Trees">Trees<!--[if gte IE 7]><!--></a><!--<![endif]--> <!--[if lte IE 6]><table><tr><td><![endif]--> <ul> <li><a href="#tree1"><img src="http://www.cssplay.co.uk/menu/lbox/tree1.jpg" alt="" title=""></a></li> <li><a href="#tree1"><img src="lbox/tree2.jpg" alt="" title=""></a></li> <li><a href="#tree1"><img src="lbox/tree3.jpg" alt="" title=""></a></li> <li><a href="#tree1"><img src="lbox/tree4.jpg" alt="" title=""></a></li> <li><a href="#tree1"><img src="lbox/tree5.jpg" alt="" title=""></a></li> <li><a href="#tree1"><img src="lbox/tree6.jpg" alt="" title=""></a></li> <li><a href="#tree1"><img src="lbox/tree7.jpg" alt="" title=""></a></li> <li><a href="#tree1"><img src="lbox/tree8.jpg" alt="" title=""></a></li> <li><a href="#tree1"><img src="lbox/tree9.jpg" alt="" title=""></a></li> <li><a href="#tree1"><img src="lbox/tree10.jpg" alt="" title=""></a></li> <li><a href="#tree1"><img src="lbox/tree11.jpg" alt="" title=""></a></li> <li><a href="#tree1"><img src="lbox/tree12.jpg" alt="" title=""></a></li> <li><a href="#tree1"><img src="lbox/tree13.jpg" alt="" title=""></a></li> <li><a href="#tree1"><img src="lbox/tree14.jpg" alt="" title=""></a></li> <li><a href="#tree1"><img src="lbox/tree15.jpg" alt="" title=""></a></li> <li><a href="#tree1"><img src="http://www.cssplay.co.uk/menu/lbox/tree1.jpg" alt="" title=""></a></li> </ul> <!--[if lte IE 6]></td></tr></table></a><![endif]--> </li> <li><a class="set" href="#Birds">Birds<!--[if gte IE 7]><!--></a><!--<![endif]--> <!--[if lte IE 6]><table><tr><td><![endif]--> <ul> <li><a href="#bird1"><img src="http://www.cssplay.co.uk/menu/lbox/bird1.jpg" alt="" title=""></a></li> <li><a href="#bird2"><img src="lbox/bird2.jpg" alt="" title=""></a></li> <li><a href="#bird3"><img src="lbox/bird3.jpg" alt="" title=""></a></li> <li><a href="#bird4"><img src="lbox/bird4.jpg" alt="" title=""></a></li> <li><a href="#bird5"><img src="lbox/bird5.jpg" alt="" title=""></a></li> <li><a href="#bird6"><img src="lbox/bird6.jpg" alt="" title=""></a></li> <li><a href="#bird7"><img src="lbox/bird7.jpg" alt="" title=""></a></li> <li><a href="#bird8"><img src="lbox/bird8.jpg" alt="" title=""></a></li> <li><a href="#bird9"><img src="lbox/bird9.jpg" alt="" title=""></a></li> <li><a href="#bird10"><img src="lbox/bird10.jpg" alt="" title=""></a></li> <li><a href="#bird11"><img src="lbox/bird11.jpg" alt="" title=""></a></li> <li><a href="#bird12"><img src="lbox/bird12.jpg" alt="" title=""></a></li> <li><a href="#bird13"><img src="lbox/bird13.jpg" alt="" title=""></a></li> <li><a href="#bird14"><img src="lbox/bird14.jpg" alt="" title=""></a></li> <li><a href="#bird15"><img src="lbox/bird15.jpg" alt="" title=""></a></li> <li><a href="#bird16"><img src="http://www.cssplay.co.uk/menu/lbox/tree1.jpg" alt="" title=""></a></li> </ul> <!--[if lte IE 6]></td></tr></table></a><![endif]--> </li> </ul> <br class="clear"> </div> Hi, I plan to use CSS with CMS on my website. I would like to use CSS content management system for the inherent benefits of managing my website myself. I have seen a few websites developed by Imageworksstudio.com using CSS CMS together in a very correct manner. Can any of you please guide me what CSS content management system they have used? Can you point me to any online resources that help in using CMS and CSS to develop a website and make it SEO friendly. Thank You, Rheanna Francis I'm working on a site (here) that has a two column style layout. Everything works fine in almost any browser OTHER than IE... In IE, the main (right) column shifts so that it is below the content length of the left (floated) column. I want them to be side by side... I've been playing with different solutions for several days. Can anyone help? (link to css file). relevant html: Code: <div id="wrapper"> <div id="container"> <div id="content"> <div id="left"> <!-- Left Block Start --> <!-- Left Sidebox Start --> <!-- Left Sidebox End --> <!-- Left Block End --> </div> <div id="main"> <!-- Center Sidebox Start --> <!-- Center Sidebox End --> <!-- BEGIN: Default News-index Article --> <!-- END: Default News-index Article --> </div> </div> </div> <div class="clearing"> </div> </div> relevant css: Code: /* styles to create table-less layout */ #wrapper { padding-top:10px; background-color: white; text-align:center; } #container { width: 770px; height: auto; margin: 0 auto 0 auto; /* sets the left and right margins to auto for everything else */ border-top: 1px solid white; } #content { /*width: 770px; */ text-align:center; } #main { text-align: left; margin-left: 175px; width: 595px; } #left { text-align: left; float: left; width: 160px; } /* utility clearer class */ .clearing { height: 0px; clear: both; } thanks in advance for the help! Hi, I'm trying to write a simple website but I can't get it to run correctly in Internet Explorer. It looks fine in Firefox and Safari, but in IE none of the CSS is used, it looks like a regular html document. I've run the Validations for both files and they pass (aside from the html file throwing errors about the css styles). Here is my code: Code: <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>TITLE</title> <link rel="stylesheet" type="text/css" href="style.css"> <!-- Date: 2009-08-10 --> </head> <body bgcolor="#D5D5D5"> <center> <banner> <img src="toptile.jpg" height="150px" width="100%" alt="topbanner"> </banner> <br> <logo> <img src="bannerlogo.png" alt="logo"></logo> <navbar> <img src="navbar.png" width="100%" height="650px" alt="background"> </navbar> <blackbar><img src="black.png" width="100%" height="20px" alt="blackbox"></blackbar> <br> <middle> <table border="0" width="800px" cellpadding="10" bgcolor="#DBFBFF"> <tr> <td width="50%" valign="top"> <br><br><br><br><br> <center> Coming Soon... </center> </td> </tr> </table> </middle> </center> </body> </html> and the CSS: Code: logo { position:absolute; display:block; margin-left: auto; margin-right: auto; top:10px; width:100%; z-index:3; } banner { position:absolute; top:-10px; left:-10px; right:0px; z-index:2; } middle { position:absolute; display:block; top:100px; margin-left: auto; margin-right: auto; width:100%; z-index:1; } navbar { position:absolute; top:140px; left:0px; right:0px; z-index:-1; } blackbar { position:absolute; top:140px; left:0px; right:0px; z-index:4; } I realize I'm probably not using all the best practices, but it displays fine on everything but IE. Can someone please help me out here. Thanks I've downloaded a free CSS website template with the idea of just swapping out the graphics and text using Notepad. All is going well with one major exception - I cannot seem to change the graphics in the sidebar or main body. I put the new graphics in the same folder as the original graphics then just changed the img tag to reflect the new filename. This results in the image spacer icon displaying but the new image does not. What is strange is that the alt tag will change correctly, just no image. I know I'm overlooking something simple, but I seem to have hit the proverbial brick wall. Any help would be most appreciated! I tried to attach the files but don't see that option and evidently I'm not permitted to post the url. Just google "templatemo 050 metal" to pull up the files. Thanks for reading this and offering any help! I need some help desperately. I am a mediocre CSS guy I am working on a site for a friend of mine. I, for the life of me, can't seem to get an image displayed in IE8 It displays fine in FF. I have a zip file with the whole site so that someone who is an expert in CSS can show what is wrong. I would be very grateful if someone can help me with this. I am not allowed to provide my email since I am a new user. I promise not to be an annoyance to anyone who is willing to share his/her email me so that I can send the files for him/her to look at. I know I am asking too much, but I have no choice I have a small box displayed at the top of the page for an "anouncment column". Opera and IE show it properly, sort of, and NEtscape/mozilla show it further down the page. I want it to be at the VERY top of the page, IE/Opera show it a few px down and mozilla/netscape show it a good 10+ down. I have tried playing with padding and it made no difference. These browsers are the new versions. any ideas? Code: <div style="position: absolute; left: 617px; top; 0px; width: 147px; height: 30px; background-color: transperant; padding: 0px;"> <h5>text is here</h5> </div> the style sheet Code: body { color: #000000; background-color: #ffffff; font-family: Georgia, "Times New Roman", Times, serif; } } h1 { FONT-WEIGHT: bold; text-align: center; font-size: 30px } h2 { FONT-WEIGHT: bold; text-align: center; font-size: 25px } h3 { FONT-WEIGHT: bold; text-align: center; font-size: 20px } h4 { FONT-WEIGHT: normal; text-align: center; font-size: 15px } h5 { padding: 0px; FONT-WEIGHT: normal; text-align: center; font-size: 12px } h6 { FONT-WEIGHT: normal; text-align: center; font-size: 9px } p { FONT-WEIGHT: normal; text-align: left; FONT-WEIGHT: normal; color: #000000; font-size: 12px } hr {color: #7d7c7c } .right {text-align: right } .center {text-align: center } .left {text-align: left } .uppercase {text-transform: uppercase} .lowercase {text-transform: lowercase} .capitalize {text-transform: capitalize} A:visited { COLOR: #802CFF; TEXT-DECORATION: underline } A:link { COLOR: #2C31FF; TEXT-DECORATION: none } A:hover { COLOR: #719FFE; TEXT-DECORATION: underline } A:active { COLOR: #2C31FF; TEXT-DECORATION: underline } Hi, I have a drop down menu which is using jquery to animate it. I am trying to set it up to display when JS is disables. I have added the following code inside a <style> tag which is inside a <noscript> tag. However, the drop down menu does not display it's drop downs. They can simply just appear, so there is no animation needed. This is my code: PHP Code: ul.tabs { display: table; margin: 0; padding: 0; list-style: none; position: relative; height:40px; width:100%; } ul.tabs li { margin: 0; padding: 0; list-style: none; display: inline-block; float: left; position: relative; padding:0 2px 0px 0px; } ul.tabs a { position: relative; display: block; line-height:40px; padding:0 18px; color:#FFF; font-size:13px; -moz-border-radius: 5px 5px 0px 0px; -webkit-border-radius: 5px 5px 0px 0px; -khtml-border-radius: 5px 5px 0px 0px; border-radius: 5px 5px 0px 0px; } ul.tabs a:hover, ul.tabs a.selected { background:#c95884; } ul.tabs a.connect { position: relative; display: block; line-height:38px; padding:0 18px; background: #54c45f; font-size:13px; } ul.tabs a.connect:hover, ul.tabs a.connect.selected { background:#68cb72; } Any ideas how I can make the sub items display? Surprise, surprise... [edit]link removed...[/edit] In FF the list of links that represent the toon archive are dispayed as two columns just like I want, but IE isn't performing properly, showing it as one list right under the other... [note] The CSS is in the head, I haven't exported to a seperate file sheet yet since it's still in development. [/note] Developing a page: As this is my first posting I do not know how to write here the URL, system does not allow me Problem is: I am using behavior: border-radius.htc and border-radius to create rounded corners in boxes. The rounded borders display correctly in Firefox, Chrome, Safari...and amazingly display well in IE7&8. Except for one column on the right hand side. The right and bottom border does not display in IE (the 4 round corners do, however!). I can't figure why. Driving me crazy! Another funny one: the border surrounding the chocolate buttons picture <div class="ftproduct_image"> displays well in all browsers except in IE8. Why could something display well in IE7 but not in IE8? This is a new for me. Any ideas welcomed! I guess you can't help without having a look at the page but I do not know how to give the uRL Hi, I have a simple question. Is it possible to display and hide a list if i click on a link using CSS? I'm not looking to change pages or anything. I know it can be done using Javascript but I would rather not use it. I've done a few searches for hiding lists in CSS but to no avail. Thanks, I'm working on a client's website and trying to get the navigation menu to look right in firefox, for some reason it seems to ignore all width properties and the table cells overlap, but only in firefox. IE displays it perfectly, any help would be appreciated. www.entsource.com/hcs/ It is source viewable and the css code follows: a.nav { color: black; text-decoration: none; border: 1px solid #6D92A2; width: 150px; padding: 2px; font-family: tahoma; font-size: 11pt; text-align: center; } a.nav:hover { color: #F80808; text-decoration: none; border: 1px solid #F80808; width: 150px; padding: 2px; font-family: tahoma; } table.pane { width: 900px; } td.nav-cell { width: 155px; border-right: 2px solid #6D92A2; } td.main { width: 750px; padding: 10px; } hr { color: #6D92A2; height: 1px; width: 400px; } strong.header { color: white; background-color: #CCCCCC; width: 700px; height: 20px; border-top: 1px black solid; border-bottom: 1px black solid; font-size: 16pt; font-family: tahoma; } strong.bold { color: black; font-size: 16pt; font-family: tahoma; } Hi for some reason some style are getting lost when ie is displaying the page i am developing, if somone could have a look that would be fantastic edited links because question has been answered Thanks everyone Code: <div id="s_site"> <a href="#site">This site</a> <h2 id="site_h">About This Memorial Site</h2> <p id="site_p" class="tab_cont">This site is brought to you by the Royal Canadian Branch 3 Legion John Bernard Croak Victorian Cross. In honor of those fallen and served in WW2.</p> </div> the h2 and p element are hidden using display:none; when I click on the anchor link i'd like them to apper using display:block; It seems like I may need to use javascript but I'd rther not use javascript at all, except for thos eunfortunate enough to still be using IE. I can't figure it out I've tried amny thing that didnt work. I've been searching for a selector that will let me access these hidden elements but I can't come up with anything. I half accomplished what I was trying but I can't get the changes to stick. Thanks for reading I don't know what's wrong, but this HAS to be something simple I'm missing. In my XHTML I have Code: <div class="curved"></div> and for the CSS I have Code: .curved { background-image: url(Green_wavy_thing.jpg); background-color: #ffffff; background-repeat: no-repeat; } The image isn't even displaying in any browser. What am I missing? I've tried quotes, etc to no avail. Is my code wrong? The image is in the same directory as the html and CSS files. Thanks, Chris Please help. I have a page with a table just inside the body tag, which i dont want displayed. This is an ad table and i have no control over it because my free host puts it there. I have my own table inside a <div> tag, which I do want displayed. How can i set up my stylesheet to not display the table just inside the body tag but to do display the table inside the div tag? thanks hey all, i am working on new site but it is displaying wrong in IE (surprise surprise). i have been playing around to see if i can get it sorted but am not having any luck, if anyone can offer an idea that would be appreciated. here is the CSS Code: <style type="text/css"> html, body {padding: 0; color: #000; background: #eee; font-family: Arial, Veranda, sans-serif; margin: 0 140px 0 140px;} h1 {color: #FFF; background: url('smallpardimg.jpg') center no-repeat #eef; font: bold 200%/1em Arial, Verdana, sans-serif; padding: 3em 1em 0; margin: 0 0 0 0; border-left: 1px solid gray; border-right: 1px solid gray;} #main {font-size: small; color: #AAA; background: #FFF; margin: 0; padding: 2.5% 12.5%; clear: left; border-top: 1px solid gray;} #nav {margin: 0; padding: 0 0 0 0; float: left; background-color:#eef; border-left: 1px solid gray; border-right: 1px solid gray;} #nav li {list-style:none; float: right; font-size: 12px; line-height: 20px; white-space: nowrap;} #nav a {display: block; float: left; padding: 0 10px 0 10px; text-decoration: none; font-weight: normal; border: 1px solid; border-color: #EEF #EEF #EEF #EEF; color: #333; width: .1em;} html>body #nav a {width: auto;} /* fixes IE6 hack */ /* Commented Backslash Hack hides rule from IE5-Mac \*/ #nav a {float: none;} /* End IE5-Mac hack */ #nav a:hover {background-color: #eef; color: #ccc; border-color: #eee #CCC #eee #ccc;} </style> and here is how it is being used in the html Code: <h1></h1> <ul id="nav"> <li><a href="/render/">?</a></li> <li id="current"><a href="/newmed/">contact us</a></li> <li><a href="/photos/">about globalhotel</a></li> <li><a href="/design/">my account</a></li> <li><a href="/webdev/">hotels</a></li> </ul> <div id="main"> <p> Lorem ipsum, dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi. Lorem ipsum, dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi. Lorem ipsum, dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi. </p> </div> and finally here is a link to the page where i am having probs. thanks in advanced RF |