CSS - Css Counters & Firefox?
I don't know if it's me doing something stupid I completely overlook, but I tried to automatically number headings down to <h4> with CSS counters.
It worked completely as I expected in Opera, but not in Firefox (3.5) -- the subheading numbers would increment predictably. The test file is below, with both CSS & content to be numbered. It's not important, but I'd be very curious to know if firefox is broken or I'm doing something foolish. vvvvvvvvvvvvvvv Test CSS Counters vvvvvvvvvvvvvvvvvvvvvv 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"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <style type="text/css"> body { max-width: 900px; margin-left: auto; margin-right: auto; } body { counter-reset: ha; /* Create a chapter counter scope */ } h1:before { content: counter(ha) ": "; counter-increment: ha; counter-reset: hb; /* Set section to 0 */ counter-reset: hc; /* Set section to 0 */ counter-reset: hd; /* Set section to 0 */ } h2:before { content: counter(ha) "." counter(hb) ": "; counter-increment: hb; counter-reset: hc; /* Set section to 0 */ counter-reset: hd; /* Set section to 0 */ } h3:before { content: counter(ha) "." counter(hb) "." counter(hc)": "; counter-increment: hc; counter-reset: hd; /* Set section to 0 */ } h4:before { content: counter(ha) "." counter(hb) "." counter(hc) "." counter(hd)": "; counter-increment: hd; } </style> <title>Test CSS Counters</title> </head> <body> <h1> First H1</h1> <h2> First H2</h2> <h3>First H3</h3> <h4>First H4</h4> <h4>Second H4</h4> <h2>Second H2 in first H1</h2> <h1>Second H1</h1> <h1>Third H1</h1> <h2>First H2 in second H1</h2> <h2>Second H2 in Second H1</h2> <h3>First H3</h3> <h3>Another H3</h3> <h3>Yet another H3</h3> <h4>Now an H4</h4> <h4>H4</h4> <h3>H3</h3> <h4>H4</h4> </body> Similar TutorialsI am desperate. I think I found a bug in Firefox, and I'm not sure how to work around it. The following code works in everything (IE 8, Chrome, Safari, Opera) except Firefox (version 3.6.3). Am I doing something wrong, or is this a bug in Firefox? You can look what happens to the drop-down menu's on Menu 2 and 3 live by going to my site (deenfoxx dot com slash firefox-bug dot html). css Code: Original - css Code #main-nav { background-color: black; height: 40px; } #nav { position: relative; margin: 0; padding: 0; } #nav li { position: relative; float: left; display: table; width: 99px; height: 40px; border-right: 1px solid white; text-align: center; font-size: 10px; } #nav li:hover { background-color: darkred; } #nav a { display: table-cell; vertical-align: middle; line-height: 11px; font-weight: bold; text-decoration: none; color: #fff; } #nav li ul { position: absolute; padding: 0; background-color: gray; top: 40px; left: 0px; } #nav li ul li { width: 98px; border: 0; border-top: 1px solid white; } #main-nav html4strict Code: Original - html4strict Code <div id="main-nav"> <ul id="nav"> <li id="m1"><a href="#1">Main Menu 1</a></li> <li> <a href="#2">Main Menu 2</a> <ul> <li><a href="#2a">Sub-Category 1</a></li> <li><a href="#2b">Sub-Category<br/>with multiple lines</a></li> </ul> </li> <li> <a href="#3">Main Menu 3 with multiple lines</a> <ul> <li><a href="#3a">Sub-Category 2</a></li> </ul> </li> <li><a href="#4">Main Menu item which has a really long name on it</a></li> </ul> </div> <div id="main-nav"> The problem appears to be that "#nav li" happens to have position:relative; and a display:table; and "#nav li ul" is position:absolute;. Normally, absolute positioning requires its parent or ancestor position to be set, but when used with the table display, it doesn't work normally on Firefox--but it does on other browsers. Can someone help me with a workaround that does not involve altering the HTML? If I must, I will accept a workaround that requires changing the HTML, but I'll have to do some heavy duty recoding of Magento's core menu generation. Anyone that knows Magento knows I want to avoid that like the plague--my example is a very simplified version of the problem. I'm having an issue where a website is showing up a few pixels off in Mac Firefox than it is in PC firefox. Anyone have a quick fix for this? Mac Screenshots: http://graffetto.com/chops/clairus_screens.pdf PC Firefox Screenshot: Firefox, IE, and Netscape all look identical on PC, while firefox, IE and safari look identical on Mac, but different from PC (except safari - messed up text) Any help is greatly appreciated Edit: after reviewing my post I realized I was quite vague. What I'm looking for is a way to filter CSS so that only Mac Firefox users will receive one CSS file, and PC users will receive another. Have a page at www.maxxedmotors.com/damo There is a div called "container" which is supposed to surround all of the content with a border. This works fine in IE 6/5.x, but in firefox the border only surrounds the div called "header". Can anyone tell me where i'm being dumb Any help greatfully appreciated. now i don't like saying things like possible bug because 99/100 it's not a bug, but some kind of user error. however, i have the following situation and i thought that describing it as a bug may get people interested in it two tables, both with auto width / height, both the same code. one table is set so that when viewed on screen it has display: none and then when printed it has display: block. if you do a print preview in internet explorer, the page shows two identicle tables. in mozilla, the table expands to fill the width of the page for the hidden table. see html attached for example; load in firefox / ie; do a print preview and you'll see what i mean. any ideas? My website works fine with all browsers except IE. Can anyone help me with the issue? www.opennys.com It uses CSS and xHTML and PHP. Thanks, Dennis my css in IE is GREAT and look good. but on firefox, it doesnt show my background and all that. can anyone give me some suggestions. www.na-magodai.net I have two divs on a page and the last two are about 10 pixels higher up the screen than the last one. But if I adjust the window size they move back down where they should be. This only happens on of the pages though which is quite odd. Does anyone know of any firefox bugs that would cause this and any work-arounds? I see there is another post here on this. But it may be a different issue. I was hoping some of the experts could take 30 seconds to see why this looks fine in Firefox and not IE. It did validate at w3c. I am sure there is a hack, but if there is something that sicks out real quick it would be much appreciated. I know everyone gives there extra time here and it is greatly appreciated. echo9design.com/willoughby/index3.html Can someone please help me, i am desparate to intergrate transparency into my forum but im finding out what a pain in the *** it is. I tried semi transparent png's, but they only work in firefox and IE7 but most people are using IE6 (42.3%). I looked around on the internet for a fix that solves the ie6 png transparency issue but i didnt find one that shows it as semi transparent and doesnt bugger all of the links. Now ive moved onto CSS, ive found a solution that works great for IE 6 + 7 but not firefox. What happens is i apply a transparent css to the pagebackground: Code: filter:alpha(opacity=50); opacity: 0.5; but it applies it to everything on top as well. To get around this i apply a non transparent css to everything on top: Code: filter:alpha(opacity=100); opacity: 1; This works fine in IE making the background transparent and the contents on top solid but in firefox everything (including the content and the background) is transparent. Is there anything i can do to get around this? Its getting really annoying! Any help you can give would be much appreciated. James I built a website and its rendering one way in firefox and another in IE. I want it to display just the way Firefox has it. However, IE keeps messing up the padding and the whole layout is destroyed. Can anyone look at my code and tell me where I am going wrong? Please can someone tell me what I must do to get the code working in both IE and Firefox. i read the thread posted about this not too long ago, and tried out the DOCTYPE! tag suggested, along with a few others from W3... however all that did was screw up the page more. anything you could do to help would be great Page Link I have a question regarding CSS and it's compatibility with FireFox, the problem is, when I have the CSS in a seperate file (e.g. <link rel="stylesheet" type="text/css" href="content.css"> ) it wont work in FireFox browser, works fine in Internet Explorer, but when I copy and paste the CSS directly onto the page, in between the <head> </head> tags of course, it works fine in FireFox and Internet Explorer fine, what am I doing wrong, do I need to specify something in the "stylesheet type" tag above? Any help would be great! users.accesscomm.ca/kendemchuk/test/education_tmp.html preview in firefox and IE. Lines appear in IE but not firefox This is related to the display of a text box on mouseover. why ?? is there a better method ?? I have a site using CSS for layout It has one main div called main-column that sits in the middle of the page and has a background image. Within this there are 3 columns columns. the trouble is the background of the main column does not show up behind these three. If you right click it says there is a background image there but nothing is showing. my css is: Code: #main-column { width:750px; height: 100%; margin-left: auto; margin-right: auto; background-image:url(/site_images/bodyback.jpg); } #left-column { width:150px; float:left; } #contents-column { width:450px; float:left; } #right-column { width:150px; float:right; } and html is: Code: <!-- Start of main column --> <div id="main-column"> <!-- Start of Left Column Div --> <div id="left-column"> <? include("../includes/leftnav.php"); ?> <!-- End of Left Column Div --> </div> <!-- Start of contents Column Div --> <div id="contents-column"> <? include("../includes/main.php"); ?> </div> <!-- Start of right Column Div --> <div id="right-column"> <? include("../includes/rightnav.php"); ?> <!-- End of right Column Div --> </div> <!-- End of Main Column Div --> </div> Any idea how I can correct this? I created a menu for someone, hideous as it may be, it's what they wanted. However, it works in Firefox but not in Internet Explorer. This is code I used for the menu. .Menu ul li { float:left; position:relative; list-style-image:url(images/divider2.gif); margin:0 15px 0 20px; padding:0; } I have an image to replace the bullets that would normally appear. In Firefox it appears with the image as it should, but in Internet Explorer it is not showing up like it should. Hi, I'm having an issue with Firefox displaying my home page correctly. It previews smaller than other pages in my site even though they all share the same style sheet. In IE 7 my site previews fine, the issue is with Firefox for some reason the wrapper seems to shrink on the home page and any help or tips to steer me the right way would be greatly appreciated, thanks. Code: <---Style sheet----> body { margin: 0; padding: 0; background-image: url(assests/wrapperimage.jpg); background-attachment: fixed; } p { color: #FFFFFF; font-family: "Courier New", Courier, monospace; line-height: 20px; letter-spacing: 2px; font-size: 12px; margin-top: 0; margin-bottom: 0px; } h1 { font-size: 2.4em; color: #00FF00; border-bottom-width: thin; border-bottom-color: #00FF00; border-bottom-style: dashed; margin-top: 40px; text-align: center; } h2 { font-size: 20px; color: #CCFF66; text-align: center; } #wrapper { width: 800px; height: 1150px; border-right: 2px solid #00FF00; border-left: 2px solid #00FF00; border-bottom: #000000 10px; margin-right: auto; margin-left: auto; background: #000000; } #banner { height: 250px; width: 800px; } #sidebar { float: left; width: 190px; height: 500px; margin-top: 60px; margin-left: 10px; margin-bottom: 60px; padding-left: 10px; color: #FFFFFF; text-align: center; border-color: #999999; border-style: thin; } #sidebar li { list-style: none; background-image: url(assests/images/images/images/check.jpg); background-repeat: no-repeat; padding-left: 25px; padding-top: 5px; padding-bottom: 5px; margin-bottom: 6px; text-align: left; } #main { float:right; width: 500px; padding: 5px; } ul.nav { font-family: Geneva, Arial, Helvetica, sans-serif; font-size: 12px; margin-left: 50px; padding-left: 0px; list-style: none; float: left; width: 750px; letter-spacing: 3px; } ul.nav li { float: left; padding-left: 10px; margin-left: 15px; margin-right: 10px; } ul.nav a { display: block; padding-left: 15px; padding-right: 5px; margin-left: 10px; margin-right: 5px; background-color: #000000; text-decoration: none; color: #00FF00; text-align: center; } ul.nav a:hover { background-image: url(assests/images/images/images/check.jpg); background-position: left; background-repeat: no-repeat; padding-right: 10px; color: #FFFFFF; } </style> <----Home page HTML----> <link href="main.css" rel="stylesheet" type="text/css" /> </head> <body> <div id="wrapper"> <div id="banner"> <img src="assests/images/starbanner.jpg" /> <ul class="nav"> <li><a href="index.html">Home</a></li> <li><a href="aboutus.html">About us?</a></li> <li><a href="services.html">Services</a></li> <li><a href="portfolio.html">Portfolio</a></li> <li><a href="contactus.html">Contact Us</a></li> </ul> </div> <div id="sidebar"> <h2>Why have a website?</h2> <p>In todays market having a business or being a professional can cost thousands of dollars and you could be missing out on siginificantly increasing revenues. The internet is low cost method of marketing that yields results with the proper planning, marketing and implemnation. Taking advantage of the internet in your overall marketing plan is essential in today's market for your company to grow and remain competitve. Take a look at our portfolio to see some of the work we've done or contact us today to schedule a no-obligation free consultation.</p> <p> </p> </div> <div id="main"> <h1>Web Design Studio</h1> <p>star media is a web design studio located in Troy, Michigan. Our specialty is providing afforadable and customized web design services as well as graphic design and print services. With our competitve pricing and custom tailored marketing programs we will drive customers to your website and through your business doors. Our competitive pricing and quick turn around time in developing websites ensures you have your website up and running as quickly as possible without breaking the bank. From basic and simple websites to high caliber e-commerce database driven websites Gstar media does it all. <h2>Why have a website?</h2> <p>In todays market having a business or being a professional can cost thousands of dollars and you could be missing out on siginificantly increasing revenues. The internet is low cost method of marketing that yields results with the proper planning, marketing and implemnation. Taking advantage of the internet in your overall marketing plan is essential in today's market for your company to grow and remain competitve. Take a look at our portfolio to see some of the work we've done or contact us today to schedule a no-obligation free consultation.</p> </div> </div> </body> </body> </html> <-------About US HTML------> <link href="main.css" rel="stylesheet" type="text/css" /> </head> <body> <div id="wrapper"> <div id="banner"> <img src="assests/images/starbanner.jpg" /> <ul class="nav"> <li><a href="index.html">Home</a></li> <li><a href="aboutus.html">About us</a></li> <li><a href="services.html">Services</a></li> <li><a href="portfolio.html">Portfolio</a></li> <li><a href="contactus.html">Contact Us</a></li> </ul> </div> <div id="sidebar"> <h2>We offer:</h2> <ul> <li>web design</li> <li>web hosting</li> <li>e-commerce</li> <li>logo design</li> <li>business card design</li> <li>flyer design</li> <li>customized marketing campaigns</li> <li>Search engine optimization</li> <li>web maintence</li> <li>illustration</li> </ul> </p> </div> <div id="main"> <h1>Our Promise.</h1> <p>star media is created with the goal of providing affordable web design service to small business owners and professionals. I graduated from Sheridan college with a degree in business and later went on to get a degree in graphic design. With a strong background in business I understand how to market your business and message effectively to prospective customers that will help spread the awarness of your products and services in order to increase your revenues. I have a strong understanding of graphic design principles with a working knowledge of CSS/XHTML, Photoshop CS3, and Illustrator CS3. </p> </div> </div> </body> </html> My site renders properly using Firefox (and Opera), but IE skews the format entirely. Looks like the table cells aren't correct, but I've double checked the code and all the tables appear to be right. I don't know if there are CSS incompatibilities with IE, but would appreciate some helpful assistance from the forum. http://markswebsite.net/dev5 html4strict Code: Original - html4strict Code <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Lederer's Sound</title> <meta name="DESCRIPTION" content="home audio system, audio conferencing system, sony audio system, audio visual system, micro audio system"> <meta name="KEYWORDS" content="home audio system, audio conferencing system, sony audio system, audio visual system, micro audio system"> <meta name="COPYRIGHT" content="Lederer's Sound"> <meta http-equiv="Expires" content="Tue, 20 Aug 1996 14:25:27 GMT"> <meta http-equiv="CHARSET" content="ISO-8859-1"> <meta http-equiv="content-LANGUAGE" content="English"> <meta name="RATING" content="General"> <meta name="ROBOTS" content="index,follow"> <meta name="REVISIT-AFTER" content="7 days"> <link href="includes/main.css" rel="stylesheet" type="text/css" /> <!--<link href="includes/sfd.css" rel="stylesheet" type="text/css" />--> </head> <body> <div id="frame"> <table width="100%" border="0" cellspacing="0" cellpadding="0" bgcolor="white"> <tr> <td width="49%"><img src="images/lederers_sound.gif" alt="Lederer's Sound" width="366" height="63"></td> <td width="51%"> <div align="right"><img src="images/call3.gif" alt="Call us (703) 532-2400" width="313" height="67" border="0" usemap="#Map2"></div> </td> </tr> </table> <hr> <div id="contentleft"> <div id="leftinfo"> <div id="search"> <table width="100%" border="0" cellspacing="3" cellpadding="3"> <tr> <td height="33" valign="middle"> <form action="index.htm." name="srchform"> <input type="text" id="srchtxt" name="SS" size="10" maxlength="125" value="Search Store" onfocus="this.value='';this.style.background='#FFFFFF'" class="input"> <input type="submit" value="Go"> <input type="hidden" name="PR" value="-1"> <input type="hidden" name="TB" value="A"> <input type="hidden" name="SHOP" value=""> <input type="hidden" name="ACTINIC_REFERRER" value="index.html"> </form> </td> </tr> </table> </div> <!-- end search --> <hr> <div id="store"> <a href="index.html"><img src="images/Store_000.gif" width="120" height="37" hspace="13" border="0"></a> </div> <!-- end store --> <hr> <div id="leftnav"> <br> <table width="159" border="0" cellspacing="1" cellpadding="1"> <th align="left"><u>Products</u></th> <tr> <td width="129"> <a href="intercoms/index.html">Home Intercoms</a><br> <a href="pasystems/index.html">Portable PA Systems</a><br> <a href="index.html">Megaphones</a> <br> <a href="index.html">PA Amplifiers</a><br> <a href="index.html">Message Repeaters</a><br> <a href="microphones/index.html">Microphones</a><br> <a href="index.html">Audio Security Masking</a><br> <a href="remote_ventilators/index.html">Remote Ventilator Alarms</a><br><BR><BR> </td> </tr> </table> <table width="159" border="0" cellspacing="1" cellpadding="1"> <th align="left"><u>Services</u></th> <tr> <td width="129"> <a href="index.html">Corporate Services</a><br> <a href="index.html">Installations</a><br> <a href="index.html">Hire Services</a> <br><br> </td> </tr> </table> </div> <!-- leftnav --> <hr> <p> <div id="leftnav"> <table width="100%" height="170" border="0" cellspacing="1" cellpadding="1"> <tr> <td width="129" align="left"><br> <a href="news.html">News</a><br> <a href="links.html">Links</a><br> <a href="ordering.html">Ordering</a><br> </td> </tr> </table> </div> <!-- leftnav --> </div> <!-- leftinfo --> </div> <!-- contentleft --> <div id="contentcenter"> <div id="content_header"><img src="images/header_home.gif" width="585" height="165"> </div> <hr> <table cellpadding=10> <tr> <td> Lederer's Sound has been family owned and operated for over 25 years. We offer friendly and personalized service. Call or <a href="mailto:lederersnd@aol.com">email</a> us with any questions you may have with your existing system, or if you are interested in repairs or updating. We will be happy to help you! <p> Free estimates/Washintgon, DC/Metro area. </td> </tr> </table> </div> <!-- contentcenter--> <div id="quickfind"> <h3>Product Quick Find</h3> <table border="0" cellspacing="7" cellpadding="7" align="center""> <tr> <td width="70" align="center"><a href="intercoms/index.html"><img src="images/home_intercoms.jpeg" alt="Home Intercoms" width="70" height="57" border="0"></a></td> <td width="70" align="center"><a href="pasystems/index.html"><img src="images/portable_pa_systems.jpeg" alt="Pa Systems" width="70" height="57" border="0"></a></td> <td width="70" align="center"><a href="index.html"><img src="images/megaphones.jpeg" alt="Megaphones" width="70" height="57" border="0"></a></td> <td width="70" align="center"><a href="index.html"><img src="images/pa_amplifiers.jpeg" alt="PA Amplifiers" width="70" height="57" border="0"></a></td> </tr> <tr> <td align="center"><a href="intercoms/index.html">Home Intercoms</a></td> <td align="center"><a href="pasystems/index.html">Portable PA Systems</a></td> <td align="center"><a href="index.html">Megaphones</a></td> <td align="center"><a href="index.html">PA Amplifiers</a></td> </tr> <tr> <td width="70" align="center"><a href="index.html"><img src="images/message_repeaters.jpeg" alt="Message Repeaters" width="70" height="57" border="0"></a></td> <td width="70" align="center"><a href="microphones/index.html"><img src="images/qk_mic.jpg" alt="Mics" width="70" height="57" border="0"></a></td> <td width="70" align="center"><a href="index.html"><img src="images/audio_security.jpeg" alt="Audio Security" width="70" height="57" border="0"></a></td> <td width="94" align="center"><a href="remote_ventilators/index.html"><img src="remote_ventilators/images/fcsystem.jpg" alt="Remote Ventilator Alarms" width="70" height="57" border="0"></a></td> </tr> <tr> <td align="center"><a href="index.html">Message Repeaters</a></td> <td align="center"><a href="microphones/index.html">Mics</a></td> <td align="center"><a href="index.html">Audio Security Masking</a></td> <td align="center"><a href="remote_ventilators/index.html">Remote Ventilator Alarms</a></td> </tr> </table> </div> <!-- quickfind --> <div id="footer"> <p>Copyright 2006 Lederer's Sound<br> <a href="index.html">Contact Us</a> | <a href="index.html">Disclaimer</a> | <a href="index.html">Terms & Conditions</a></p> </div> </div> <map name="Map2" id="Map2"> <area shape="rect" coords="257,8,307,58" href="mailto:lederersnd@aol.com" alt="Email Us"> </map> </body> </html>
css Code: Original - css Code /* CSS Document */ body { text-align:center; background: #BEBEBE url(images/bg-vert.jpg) repeat-x 50% 0; font-family:Verdana, sans-serif; font-size: 75%; line-height: 1.5em; margin: 0px 0px; color:#858585; } /* ---[ links ]------------------------------- */ a:link { color: #858585; } a:visited { color: #858585; } a:hover { color: #666666; } #frame { position: relative; margin: 0 auto; padding: 0; text-align: left; font-size: 95%; width: 750px; border-left: 1px solid #666; border-right: 1px solid #666; background: url(images/frame-bg.gif); } #hdr { height:68px; background:#fff; } /*----------------Nav-------------------*/ #search { width: 100%; padding:0px; background:#F0F0F0 url(bg-srh.gif) no-repeat; } #store { width: 100%; padding:0px; background:#F0F0F0 ; } #contentleft { width:150px; padding:0px; float:left; background:#ccc; border-top:1px solid #D4D4D4; } #leftinfo { width:159px; padding:0px; float:left; background:#fff; } #leftnav { padding-left:3px; background: #F0F0F0; border-bottom:1px solid #D4D4D4; } #leftnav table { padding: 0px; margin: 0px; border-collapse: collapse; } #contentcenter { width:585px; padding:0px; float:right; padding-left:8px; background:#fff; } #content_header { padding: 0 0; margin: 0 0; height: 165px ; } #content_header2 { padding: 0 0; margin: 0 0; height: 228px ; } #quickfind { float:right; width:575px; padding:5px 5px; background-color: #FFF; border-top: 1px solid #D4D4D4; } /*------ text --------------*/ .productheading { font-weight:bold; font-size:13px; }
Thanks! I added a new template to my vbulletin forums. Unfortunately, the nav bar (uses css) is not displaying the proper anchor text color in IE6 (should be white). url: forums*jwsuretybonds*com Here is the header code: Code: <STYLE TYPE="text/css"> <!-- .nav_box { border-top:solid 1px #677281; border-right:solid 1px #677281; height: 24px; vertical-align: middle; text-align: left; background-color: #214E77; font-family: Verdana, Arial, Helvetica, sans-serif; font-weight: bold; color: #000000; padding-left: 5px; } .nav_box_over { border-top:solid 1px #677281; border-right:solid 1px #677281; height: 24px; vertical-align: middle; text-align: left; background-image:url('images/bg_roll.jpg'); font-family: Verdana, Arial, Helvetica, sans-serif; font-weight: bold; color: #000000; padding-left: 5px; cursor: hand; } .nav_box A{font-family:Arial, Helvetica, sans-serif; font-size:12px; text-decoration:none; color:#ffffff;} .nav_box_over A{font-family:Arial, Helvetica, sans-serif; font-size:12px; text-decoration:none; color:#606060; } //--> </STYLE> <table width="741" border="0" align="center" cellpadding="0" cellspacing="0" style="border-top:solid 1px #F1F2F2; border-left:solid 1px #F1F2F2; border-right:solid 1px #F1F2F2"> <tr> <td><img src="http://www.jwsuretybonds.com/images/jw_logo2.jpg" alt="JW Surety Bonds - Logo" width="281" height="167" /><img src="http://www.jwsuretybonds.com/images/bannertop.jpg" alt="Bond"width="458" height="167" /></td> </tr> </table> <table width="741" border="0" align="center" cellpadding="0" cellspacing="0" background="http://www.jwsuretybonds.com/images/bg_pattern.jpg" style="border-right:solid 1px #F1F2F2; border-left:solid 1px #F1F2F2"> <tr> <td width="741" valign="top"> <table width="741" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF"> <tr> <td width="185" bgcolor="#F9FFFF" class="nav_box" onclick="javascript:parent.top.location.href='http://www.jwsuretybonds.com/index.htm'" onmouseover="this.className='nav_box_over';" onmouseout="this.className='nav_box';"> <center><a href='http://www.jwsuretybonds.com/'>Home - JW Surety Bond</a></center> </td> <td width="184" bgcolor="#F9FFFF" class="nav_box" onclick="javascript:parent.top.location.href='http://www.jwsuretybonds.com/apps.htm'" onmouseover="this.className='nav_box_over';" onmouseout="this.className='nav_box';"> <center><a href='http://www.jwsuretybonds.com/apps.htm'>APPLICATIONS</a></center> </td> <td width="185" bgcolor="#F9FFFF" class="nav_box" onclick="javascript:parent.top.location.href='http://www.jwsuretybonds.com/bond_information.htm'" onmouseover="this.className='nav_box_over';" onmouseout="this.className='nav_box';"> <center><a href='http://www.jwsuretybonds.com/bond_information.htm'>Learn About Bonding</a></center> </td> <td width="185" bgcolor="#F9FFFF" class="nav_box" onclick="javascript:parent.top.location.href='http://www.jwsuretybonds.com/coprof.htm'" onmouseover="this.className='nav_box_over';" onmouseout="this.className='nav_box';"> <center><a href='http://www.jwsuretybonds.com/coprof.htm'>Company Profile</a></center> </td> </tr> </table> </tr> <tr> <td> <table style="float: right;" border="0" cellpadding="5" cellspacing="0" background="http://www.jwsuretybonds.com/images/bg_pattern.jpg"> <tr> <td align="center"> <a href="https://srv0.velaro.com/visitor/requestchat.aspx?siteid=1151&showwhen=inqueue&secure=yes" target="VelaroChat" onClick="this.newWindow = window.open('https://srv0.velaro.com/visitor/requestchat.aspx?siteid=1151&showwhen=inqueue&secure=yes', 'VelaroChat', 'toolbar=no,location=no,directories=no,menubar=no,status=no,scrollbars=no,resizable=yes,replace=no') ; this.newWindow.focus();this.newWindow.opener=window;return false;"><img alt="Velaro Live Help" src="https://srv0.velaro.com/visitor/check.aspx?siteid=1151&showwhen=inqueue" border="0"></a> </td> </tr> </table> <BR> <H1 style="margin-left: 20px; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 20px; color:#103465;">Surety Bond Forums</h1> Anyone have any ideas? Im using this code in my css file to vertically align the title of a web page to the middle of the div. It works fine in FireFox but in IE its not aligned, its still at the top This is the css code Code: .creswick { font-family: "Comic Sans MS", Verdana; color: #365689; background-color: #D4A102; } .creswick2 { font-family: "Comic Sans MS", Verdana; color: #FFFF00; background-color: #D4A102; } #Logo { position:absolute; height:130px; width:262px; left:0px; top:0px; } #Title { position:absolute; left:262px; height:130px; top:0px; width:600px; text-align:center; vertical-align:middle; } #Menu { position:absolute; left:0px; top:131px; width:262px; font-size:12; } #Content { position:absolute; left:277px; text-align:left; top:131px; width:575px; overflow: visible; } #RightSide { position:absolute; top:131px; left:863px; width:100px; } #Right_Side_Top { position:absolute; top:0px; left:863px; height:130px; width:100px; } website is here http://creswickplaygroup.co.uk/ |