CSS - Alignment Problem Both In Ie And Firefox
ok when you take a look at http://www.mostardesigns.com/razorsedge/ you can clearly see what the alignment problem is.
Here is the code below: HTML: 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=iso-8859-1" /> <title>Razor's Edge</title> <style type="text/css"> <!-- @import url("css/general.css"); --> </style> </head> <body> <center> <table width="898" border="0" cellspacing="0" cellpadding="0"> <tr> <td colspan="10"><img src="images/banner.jpg" border="0" alt="" /></td> </tr> <tr> <td><img src="images/menu_1.jpg" border="0" alt="" /></td> <td><img src="images/menu_home_1.jpg" border="0" alt="Home" /></td> <td><img src="images/menu_servers_1.jpg" border="0" alt="Services" /></td> <td><img src="images/menu_tournaments_1.jpg" border="0" alt="Tournaments" /></td> <td><img src="images/menu_downloads_1.jpg" border="0" alt="Downloads" /></td> <td><img src="images/menu_sponsors_1.jpg" border="0" alt="Sponsors" /></td> <td><img src="images/menu_proshop_1.jpg" border="0" alt="Proshop" /></td> <td><img src="images/menu_forums_1.jpg" border="0" alt="Forums" /></td> <td><img src="images/menu_contact_1.jpg" border="0" alt="Contact" /></td> <td><img src="images/menu_2.jpg" border="0" alt="" /></td> </tr> <tr> <td colspan="2"><img src="images/menu_3.jpg" border="0" alt="" /></td> <td colspan="6" class="border_top"></td> <td colspan="2"><img src="images/menu_5.jpg" border="0" alt="" /></td> </tr> <tr> <td class="border_left"><img src="images/border_left_1.jpg" border="0" alt="" /></td> <td colspan="8" class="bg_main"> <table width="832" border="0" cellspacing="0" cellpadding="0"> <tr> <td class="bg_menu"><div class="bg_menu_left"> </div></td> <td class="bg_center"><img src="images/tournament.jpg" border="0" alt="" /></td> <td class="bg_menu"><div class="bg_menu_right"> </div></td> </tr> </table> </td> <td class="border_right"><img src="images/border_right_1.jpg" border="0" alt="" /></td> </tr> <tr> <td><img src="images/bottom_1.jpg" border="0" alt="" /></td> <td colspan="8" class="border_bottom"></td> <td><img src="images/bottom_3.jpg" border="0" alt="" /></td> </tr> </table> </center> </body> </html> CSS: Code: /* BEGIN GENERAL SETTINGS */ body { background-color:#B0D2F4; background-image:url(../images/body_bg.jpg); background-position:top; background-repeat:repeat-x; margin:0px; text-align:center; } body, td, div { text-align:left; font-family:Verdana, Arial, Helvetica, sans-serif; font-size:11px; color:#333333; } /* BEGIN TD SETTINGS */ td.border_top { background-image:url(../images/menu_4.jpg); background-repeat:repeat-x; } td.border_left { width:30px; background-image:url(../images/border_left_2.jpg); background-repeat:repeat-y; vertical-align:top; } td.border_right { width:30px; background-image:url(../images/border_right_2.jpg); background-repeat:repeat-y; vertical-align:top; } td.border_bottom { height:30px; background-image:url(../images/bottom_2.jpg); background-repeat:repeat-x; } td.bg_main { background-color:#EFEFEF; padding:3px; vertical-align:top; } td.bg_menu { background-color:#829CB5; vertical-align:top; padding:0px; width:206px; } td.bg_center { padding-left:2px; padding-right:2px; padding-top:0px; padding-bottom:0px; vertical-align:top; width:420px; } /* BEGIN DIV SETTINGS */ div.bg_menu_left { background-image:url(../images/menu_left_bg.jpg); background-repeat:repeat-y; vertical-align:top; width:200px; padding:2px; margin:3px; } div.bg_menu_right { background-image:url(../images/menu_right_bg.jpg); background-repeat:repeat-y; vertical-align:top; width:200px; padding:2px; margin:3px; } Similar TutorialsSounds simple... but I can't find an answer. I've a simple table row with a css background image. In the row I've my text links and two images that are links. While in firefox everything lines up nice and straight... in intercrash exploder it's all over the place, the images are almost subtext and the text is almost text top.. Any advice? The page can be seen at addcolour (co uk extension) CSS in a folder css the file name is addcolour Many thanks d Hello, I have a question about alignment in firefox. The menu i have has some space while it needed to reach the top, like it does in IE. The page you can see on: http://217.115.203.132/dcvtest/ I hope anyone has a solution for me. Thanks in advance. Tim Hello everyone! A pre-emptive thank you to anyone and everyone who reads and responds to my questions! I'm new to CSS, being more of a designer and far, far less of a coder, so forgive any potential glaring errors I may be making. I'm having to learn all this stuff as I go along, with little to no guidance, so any advice you guys might have as far as repairing my lackluster coding will be taken with shy graciousness. I'm attempting to put together a basic template for a website I am trying to build, to use in conjunction with concrete5, an open-source CMS. I've managed to make it look and operate correctly in IE and Chrome, but in FireFox the navbar on the bottom does not align itself correctly. It jumps several hundred pixels down the page and jolts sharply to the left. I've managed to make use of the @-moz tag to get it to accept FireFox-specific behavior. However, I cannot get it to maintain absolute positioning, despite assigning it that attribute. Rescaling the window or zooming in and out in a browser causes it to slide around willy-nilly, even if I reposition it specifically in the CSS. As a note, I had a lot of trouble getting other elements to properly center in the process of making the whole template, but I'm not sure what was causing that, either. I've not been able to get things to center themselves properly or respond correctly to instructions; I'm basically running in the dark, here. The code is below. Please let me know what I'm doing wrong! Code: <?php defined('C5_EXECUTE') or die(_("Access Denied.")); $this->inc('elements/header.php'); ?> <body> <div id="container"> <div id="navbar"> <div class="navspacer"> <a href=""></a></div> <div class="nav1"> <a href="plans.html"></a></div> <div class="nav2"> <a href="phones.html"></a></div> <div class="nav3"> <a href="broadband.html"></a></div> <div class="nav4"> <a href="index.html"></a></div> <div class="nav5"> <a href="services.html"></a></div> <div class="nav6"> <a href="accessories.html"></a></div> <div class="nav7"> <a href="locations.html"></a></div> <div class="display"> <div class="presentation"> <div class="columnzone"> <div class="column1"> <div class="columncontent"> <?php $a = new Area('Sidebar'); $a->display($c); ?> </div> </div> <div class="column2"> <div class="columncontent"> <?php $a = new Area('Main'); $a->display($c); ?> </div> </div> <div class="column3"> <div class="columncontent"> <?php $a = new Area('Column3'); $a->display($c); ?> </div> </div> </div> </div> <div id="bottomnav"> <div class="bnav1"> <a href="contactus.html"></a></div> <div class="bnav2"> <a href="feedback.html"></a></div> <div class="bnav3"> <a href="employment.html"></a></div> </div> </div> </div> </div> </div> <div class="footer"> <?php $this->inc('elements/footer.php'); ?> </div> </body> And the CSS: Code: /* CSS Document */ body { font:12px Trebuchet MS, Tahoma, Arial; color:#000000; background:url(/images/bg.jpg) repeat; } #container { margin:0 auto; width:1050px; bottom:0; } /* NavBar */ #navbar { width: 928px; height: 90px; position:absolute; padding-left:50px; top:0; } #navbar li { list-style:none; display:inline; } .navspacer a { display:inline; float:left; width: 20px; height: 90px; background:url(/images/nav00.png) no-repeat; text-decoration: none; position:inherit; } .nav1 a { display:inline; float:left; width: 132px; height: 90px; background:url(/images/nav01.png) no-repeat; text-decoration: none; position:inherit; } .nav1 a:hover { background:url(/images/nav08.png) no-repeat; } .nav2 a { display:inline; float:left; width: 127px; height: 90px; background:url(/images/nav02.png) no-repeat; text-decoration: none; position:inherit; } .nav2 a:hover { background:url(/images/nav09.png) no-repeat; } .nav3 a { display:inline; float:left; width: 139px; height: 90px; background:url(/images/nav03.png) no-repeat; text-decoration: none; position:inherit; } .nav3 a:hover { background:url(/images/nav10.png) no-repeat; } .nav4 a { display:inline; float:left; width: 114px; height: 90px; background:url(/images/nav04.png) no-repeat; text-decoration: none; position:inherit; } .nav4 a:hover { background:url(/images/nav04.png) no-repeat; } .nav5 a { display:inline; float:left; width: 126px; height: 90px; background:url(/images/nav05.png) no-repeat; text-decoration: none; position:inherit; } .nav5 a:hover { background:url(/images/nav12.png) no-repeat; } .nav6 a { display:inline; float:left; width: 129px; height: 90px; background:url(/images/nav06.png) no-repeat; text-decoration: none; position:inherit; } .nav6 a:hover { background:url(/images/nav13.png) no-repeat; } .nav7 a { display:inline; float:left; width: 141px; height: 90px; background:url(/images/nav07.png) no-repeat; text-decoration: none; position:inherit; } .nav7 a:hover { background:url(/images/nav14.png) no-repeat; } /* NavBar End */ /* Central Display Area */ .display { display:block; height:475px; left: 74Px; position: static ; width:950px; background:url(/images/display.png) top no-repeat; } /* Central Display Area */ /* Presentation Area */ .presentation { display:block; height:466px; position: absolute; left:71px; width:908px; top:421px; background:url(/images/presentation01.png) top no-repeat; } .columnzone { margin-top:-35px; padding-top:52px; position:relative; z-index:0; } .columncontent { padding: 18px 0px 0px 0px; } .column1 { width:259px; float:left; padding: 0px 15px 10px 20px; } .column2 { width:303px; float:left; padding: 0px 10px 10px 9px; } .column3 { width:259px; float:left; padding: 0px 10px 10px 15px; } /* Presentation Area End */ /* Bottom Nav */ #bottomnav { display:block; width: 928px; height: 90px; position:absolute; margin-top:887px; margin-left:21px; } #bottomnav li { list-style:none; display:inline; } .bnav1 a { display:inline; float:left; width: 326px; height: 37px; background:url(/images/presentation02.png) no-repeat; text-decoration: none; position:inherit; } .bnav1 a:hover { background:url(/images/presentation05.png) no-repeat; } .bnav2 a { display:inline; float:left; width: 250px; height: 37px; background:url(/images/presentation03.png) no-repeat; text-decoration: none; position:inherit; } .bnav2 a:hover { background:url(/images/presentation06.png) no-repeat; } .bnav3 a { display:inline; float:left; width: 332px; height: 37px; background:url(/images/presentation04.png) no-repeat; text-decoration: none; position:inherit; } .bnav3 a:hover { background:url(/images/presentation07.png) no-repeat; } @-moz-document url-prefix() { #bottomnav { display: inline-block; position:absolute; width: 928px; height: 90px; margin-left:0px; padding:0 0 0 0; } /* Bottom Nav End */ .footer { background:url(/images/footer.png) no-repeat; height:60px; text-align:center; color:#fefaca; padding-top:18px; margin-top: -500px; margin-bottom:20px; position:relative; z-index:2; } Code: <?xml version="1.0" encoding="UTF-16"?> <!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> <title>Tableless structure</title> <style type="text/css"> <!-- * { font: 12px Verdana, Geneva, Arial, Helvetica, sans-serif; width: 800px; height: 500px; margin-left: auto; margin-right: auto; } body { margin: 0px; padding: 0px; margin-top: 40px; } #head { background: LightGreen; width: 100%; height: 15%; } #menu { background: Pink; float: left; width: 20%; height: 80%; } #body { background: LightBlue; float: right; width: 80%; height: 80%; } #foot { background: Silver; clear: both; width: 100%; height: 5%; } --> </style> </head> <body> <div id="head">Header</div> <div id="menu">Menu</div> <div id="body">Body</div> <div id="foot">Footer</div> </body> </html> This code works fine on Firefox by centering horitzontally the page but in IE7 stays left aligned. Can you help? Thank you! Running here I'm having trouble getting two textual elements to align oppositely, one left one right, within a DIV. Visually, I am attempting this: PHP Code: ================================================================= User: John Doe Main Menu :: Logout ================================================================= To accomplish this in all browsers as compliantly as possible, I attempted to define the outer div in CSS, align the content left in the XHTML, and then float another DIV inside to the right to hold the right-aligned textual content. I know that since <DIVs> are considered block level items, they are preceeded and followed by a linebreak. Thus, I defined the Right-floated DIV as display: inline, hoping to fix that. The CSS: PHP Code: #loginbar { height: 14px; font-size: 7pt; line-height: 7pt; font-weight: bold; color: #ffffff; background: #285064; margin: 0; padding: 3px 3px 0px 3px; } #logout { float: right; display: inline; } .loglink { font-size: 7pt; line-height: 7pt; font-weight: bold; color: #ffffff; } And the markup: Code: <div id="loginbar" align="left"> User: '.$_SESSION['fullname'].' <div id="logout" align="right"> <a class="loglink" href="main.php">Main Menu</a> :: <a class="loglink" href="logout.php">Logout</a> </div></div> This system works nicely in every browser I've tried (IE6 Win, IE5.1 Mac, Opera 7.54, Camino, Safari, and NN7.2) EXCEPT Firefox. Firefox continues to put the linebreak in before the logout, dropping the text halfway below the bottom of the div even when the div is defined as display:inline. (Interesting enough, the other so-called compliant browsers don'tput in the linebreak before the div even when it's not defined inline.) Anyone have a more elegant solution to this? I'm pretty sure I'm doing it the hard way now and can't see the forest from the trees at this point I'm using this layout, modified quite a bit for visual design, but the "mechanics" are the same as the author's demo for the most part: http://matthewjamestaylor.com/blog/...rail-pixels.htm The top navigation is a horazontal list aligned to the left. What I would *like* to do is have all of the nav "tabs" aligned to the left as they are now, except the last one, aligned to the right. Sort of like this: TTTT_____T Any ideas? Hi! I'm new to this forum, but I'm hoping you can help me! Included is my CSS coding. I am having a little bit of trouble getting #siteAds to have the correct width after adding borders to the three #mainContent. When I tweak the pixel amount it either runs onto the next line or just doesn't line up properly with #siteNav and #footer. I've tried replacing the pixel counts with percentages; doesn't work. I'm relatively new at CSS so any help would be appreciated. Thanks in advance! Code: <style type="text/css"> body { background-image:url('bg-1.jpg'); background-repeat:no-repeat; background-position:top; background-color:#FFF; background-attachment:fixed; } * { margin: 0px; padding: 0px; } #wrapper { height: 1300px; width: 1000px; margin:0px auto; text-align:left; } #branding { height: 228px; width: 1000px; } #branding #logo { height: 228px; width: 1000px; position: relative; background-image:url('hooplogolarge.jpg'); background-repeat:no-repeat; background-position:top; background-color:#000000; } #siteNav { height: 38px; width: 1000px; color: #FFF; background-color: #000; line-height: 38px; clear: both; font-family: Arial, Helvetica, sans-serif; float: none; text-align: center; word-spacing: normal; font-size: 24px; } #mainContentWrapper { float: none; width: 1000px; background-color: #FFF; } #mainContentWrapper #news { float: left; width: 265px; height: 953px; background-color:#FFF; border: thin dashed #000; padding: 10px; } #mainContentWrapper #mainContent { float: left; width: 488px; height: 953px; background-color:#FFF; padding: 10px; border: thin dashed #000; } #mainContentWrapper #siteAds { float: right; width: 175px; height: 953px; background-color:#FFF; padding: 10px; border: thin dashed #000; } #footer { width: 1000px; font-size: 9px; color: #CCC; text-align: center; line-height: 35px; background-color: #000; clear: both; } </style> OK, I somehow became a css n00b overnight (I've made 4-5 websites heavily using css.) Basically, here is what I want: Code: style :: [ ] [ ] And here is what I'm getting: Code: style :: [ ] [ ] For some reason the boxes won't align with the text. No matter what I do! Here is the link to see: http://www.sential.co.uk/test.php Here is the html: Code: <div id="style_selector"> <p>style :: <a href="#" onclick="setActiveStyleSheet('SE001'); return false;" title="change to style: Underwater - Water Planet"><div id="style_se001">Blue</div></a> <a href="#" onclick="setActiveStyleSheet('SE002'); return false;" title="change to style: Orkidea - Beautiful"><div id="style_se002">Orange</div></a> </p> </div> And here is the css: Code: #style_selector{ position: absolute; top: 70px; left: 160px; height: 25px; width: 100%; text-align: left; } #style_se001{ float: left; height: 15px; width: 15px; text-indent: 10000px; overflow: hidden; background-color: #6187E1; display: block; border: 1px solid #ffffff; } #style_se001:hover{ border: 1px solid #6187E1; } #style_se002{ float: left; height: 15px; width: 15px; text-indent: 10000px; overflow: hidden; background-color: #FCB029; display: block; border: 1px solid #ffffff; } #style_se002:hover{ border: 1px solid #FCB029; } I'm sure it's something simple, yet I've tried switching positioning attributes and everything, and the code for aligning these boxes is IDENTICAL to the menu buttons at the top. I'm totally miffed -Luke My page looks great, except in IE 6 where the green header shifts left instead of staying centered. I don't know why!!! It can be viewed at: http://www.descom.org/testing/home.html Roll over "About" and then click on any of its sublinks. The CSS sheets a http://www.descom.org/testing/allianceStyles.css and: http://www.descom.org/testing/ie6.css THANK YOU! Ok. I've got a calendar all set up, and it displays properly in its frame in Firefox. using firefox, try the following link: http://www.kennedygallery.org (click events calendar) in IE, the whole thing is right-justified or centered or something. Since I discovered the problem, I even started putting redundant declarations in the calendar's style sheet: Code: body { font-family : Verdana, Arial, Helvetica, sans-serif; font-size: 10px; background : #FFFFFF ; color : #505458; margin: 0px; margin-left: 10px !important; width:590px !important; } .maintable { position: absolute; left: 10px !important; margin-top: 0px; margin-bottom: 0px; margin-left:0px; } etc, etc. So is there a positioning bug or something that I have to work around to make it display as it does in Firefox? Thanks, Perry. I'm trying to change over from coding HTML tables to using CSS and I'm still new at this. Thanks in advance to anyone who can help me out with this alignment issue. For the main content of this page, I'd like the text to be left-aligned, but it's showing up as centered. I'm hoping it's some obvious oversight on my part that someone might easily see and point out to me. Thanks! Here's my HTML: Code: <center> <div id="hpMaincanvas"> <? include('includes/topnav.php'); ?> <div id="aboutArea"> <h2>About VERVANO</h2> VERVANO was born as a solution to a problem in the furnishings world. Accustomed to having the world's resources at our finger tips through our connections with colleagues and vendors, internet research and in-person travel, the LBD team was at a lost for sourcing sustainable furnishings for their own space.<P> This compelling desire became a need which launched this eco-conscious furnishings line from the Laura Britt Design studio in Austin, TX.<P> Founded with the hope that our small input could have impact on the future of the design industry, the team has held fast to the sustainable sourcing and building model through all of the subsequent ups and downs. Although 'green' is now a standard buzz word it's not a standard practice. Each step of this process has been met with rigorous research and challenging sourcing.<P> Thankfully, VERVANO remains true to its original intent - built close to home using sustainable materials. Our interest lies in using materials which are rapidly renewed in nature, sustainably sourced and support a healthy indoor air quality through low VOCs.<P> It's still a long road until this is a mainstream way of designing, sourcing, and building furnishings- but we're doing our part to bring this step closer to home. Thanks for your interest and support of our endeavor. <br><img src="art/space.gif" alt="" height=12 width=1><br> <img src="art/laura.jpg" align=left alt="Laura Britt, founder of Vervano"><h2>About Laura Britt Design</h2> <span class="label">EDUCATION AND BACKGROUND</span><br> Ms. Britt earned a B.S. in Interior Design from Oklahoma State University in 1992. She went on to manage and design large scale, multi-million dollar interior design and architecture projects for the United States Air Force Academy. She later enrolled in the University of Texas at Austin in 2000 and received a Masters Degree in Architecture with emphasis in Sustainable Design. Through her architectural background she developed a contextual understanding of buildings as integrated systems. Following her graduation from the University of Texas she subsequently worked in complex hospitality design and architecture in Austin, TX, giving her a unique and real-world perspective regarding many attributes of public space design. <P> <span class="label">ON BUDGET, ON TIME AWARD WINNING COMPANY</span><br> Laura Britt Design is an award winning full service design firm. Value-added design, teamwork and attention to detail are at the foundation of each project. Starting with the specifications of the client, the firm integrates architectural and interior design solutions to create on budget, on time, functional environments. <P> <span class="label">SUSTAINABILITY & LEED</span><br> Laura Britt designs are based on the vision and mission of the end user. Laura Britt Design firm is recognized as a leader in sustainable design practices and has multiple LEED certified designers on staff. <P> <span class="label">OUR TEAM</span><br> The design team has approximately 75 years of cumulative experience and training. Each is professionally trained to identify the key factors driving the architecture and design and construction of each building project with the facilities team and architecture team. Our technical expertise includes cost estimating, utilization of CAD technology, project management, on site quality control inspection, specification of furnishings and finishes, space planning and 3D modeling and rendering. <P> <span class="label">Associations</span><br> Vervano is a proud member of the <a href="(URL address blocked: See forum rules)" target="new">Sustainable Furnishings Council</a>. <br><img src="art/space.gif" alt="" height=8 width=1><br> Laura Britt Design is recognized as a HUB by the State of Texas due to it's designation as a Woman Owned Business. HUB certification was granted in November or 2008. The firm is also listed on the states Central Master Bidders List. <br><img src="art/space.gif" alt="" height=8 width=1><br> Laura Britt Design is a member of The Best Practices Network - Interior designers committed to on-time, on-budget projects through continuing business education and the sharing of best practices.<P> </div> <? include('includes/footer.php'); ?> </center> Here's my CSS: Code: body { font-family: Georgia, "Times New Roman", Times, serif; font-size: 12px; color: #645133; background: url(art/bg.jpg); background-repeat: no-repeat; background-position: center top; } h1 { font-family: Georgia, "Times New Roman", Times, serif; font-size: 30px; font-weight: lighter; color: #49320f; } h2 { font-family: Georgia, "Times New Roman", Times, serif; font-size: 16px; color: #49320f; margin-top: -20px; font-weight: lighter; line-height: 36px; } #hpMaincanvas { position: relative; padding: 0px; width: 900px; margin-top: 35px; margin-left: auto; margin-right: auto; background-color: #ffffff; z-index:5; } #socialMedia { position: relative; font-family: georgia,palatino,serif; font-size: 12px; color: #bbb38c; line-height: 17px; font-style: italic; padding-right: 50px; width: 900px; text-align: right; } #MainArea { position: relative; padding-right: 50px; padding-top:0px; width: 900px; text-align: center; z-index:20; } #AboutArea { position: relative; padding-right: 50px; padding-left: 50px; padding-top:30px; width: 800px; z-index:20; text-align:left; } #footer { position: relative; text-align: center; } #navigation { position: absolute; top:40px; width: 600px; left: 320px; font-weight: normal; z-index:25; margin-left: auto ; margin-right: auto ; } li { list-style: none; float: left; position:relative; } ul { padding: 0; margin: 0; list-style: none; font-family: Helvetica, Arial, sans-serif; font-size: 12px; text-transform: uppercase; text-decoration: none; } ul li { display: block; position: relative; float: left; } li ul { display: none; border: 1px solid #e2ddbe; } ul li a { display: block; text-decoration: none; text-align:left; color: #594425; padding: 7px 7px 7px 7px; white-space: nowrap; } ul li a:hover { color: #d93800; } li:hover ul { display: block; position: absolute; } li:hover li { float: none; font-size: 11px; background: #efede1;; } li:hover a { } li:hover li a:hover { background: #ffffff; } .logo { position: absolute; top: 30px; left: 50px; } .label { font-family: Helvetica, Arial, sans-serif; font-size: 11px; text-transform: uppercase; line-height: 19px; letter-spacing: 2pt; color: #a99573; } .copyright { font-family:georgia,times,serif; font-size:11px; color:#beb692; text-align:center; } a.copyright, a.copyright:link, a.copyright:visited { text-decoration:none; font-family: georgia,times,serif; font-size: 11px; text-align:center; } a.copyright:hover { text-decoration:underline; } .middle, .submit { vertical-align: middle } Hi Im a newbie to this site and to web page building so Im no sure if this is the right spot to be posting, but I think my problems are css related. Ive designed my web page with a 3 column layout the when I insert text into the left and middle columns the text starts from the top of the page like its ment to, but for some reason when I insert text into the right column it starts from the bottom of the page instead and I cannot work out why? Does anyone have any ideas? Is it css related or html? 2nd Issue how do I get the menu bar to float to the centre of the screen instead of the left? Ive tried so many things and it just make it worse. I know its hard without pics. Thanks for taking the time to read my question. Have posted 2 examples of my problem. Example 1: http://www.pierced.ca/Kelly/indexCOPY.htm Page http://www.pierced.ca/Kelly/kelly1.htm CSS http://www.pierced.ca/Kelly/kelly1.css CSS (this one will download) Here my rounded corners don't line up to the bottom of the "info" area. Not sure why. Example 2: http://www.pierced.ca/Kelly/indexCOPY2.htm http://www.pierced.ca/Kelly/kelly2.htm CSS http://www.pierced.ca/Kelly/kelly2.css CSS (this one will download) Here my rounded corners line up, but I get an extra space under the "menu" section. Not sure why. I am totally stuck. I am not sure how to fix it. I have tried adding height to the menu, but that doesn't work. Thanks for you help, Brad Hi All, I am new to devshed and new to css stuff. I have a problem with a site i am currently building. http://www.foodaffairs.co.za Basically there is a yellow link box underneath the flash image which in FF(Firefox) is out a little to the right and in IE out to the left. The yellow block is actually an image which is the same width as the flash image but just doesn't wanna line up. Anyone had this problem or could help me fix it? Thanks LoTi Hi, the foolowing code is highlighting some options that I have in a layer sitting on top of a tablet type object. In IE the options are displayed 'inside' the tablet. In Firefox they are spread out down the page into my footer, any ideas what I can add to contain them within the tablet layer? PHP Code: <div style="position: absolute; width: 100px; height: 100px; z-index: 1; left: 1px; top: 188px; visibility:visible" id="layer2"> <div style="position: absolute; width: 100px; height: 24px; z-index: 1; left: 46px; top: 35px; visibility:visible; right:0; bottom:0" id="layer3"> <p align="center"><font color="#4E261B"><b> <span style="font-size: 11pt"> <a href="home" style="text-decoration: none"> <font color="#4E261B">Home</font></a></span></b></font><p align="center"> <p align="center"> <font color="#4E261B"><b><span style="font-size: 11pt">About US</span></b></font><p align="center"> <p align="center"> <font color="#4E261B"><b><span style="font-size: 11pt">User Register</span></b></font><p align="center"> <p align="center"> <font color="#4E261B"><b><span style="font-size: 11pt">User Log-in</span></b></font><p align="center"> <p align="center"> <font color="#4E261B"><b><span style="font-size: 11pt">Supplier Log-in</span></b></font><p align="center"> <p align="center"> <font color="#4E261B"><b><span style="font-size: 11pt">Join Head2Toe</span></b></font></div> <img border="0" src="images/bridetablet1.bmp" width="190" height="302"></div> <p></div> <!-- to clear footer --> </div><!-- end outer div --> Layer 2 is the tablet, layer 3 is the text on top. if you need anything else, please let me know. Thanks, G hello people i built my website using html and css and i completed the frontpage but iam having a serious issue with the page whe i zoom in or our in firefox (ctrl+MouseScroll) , the middle area in the page is remainng on the same place but the right and left areas are floating away from the middle area of the page , so i need to know how can i fix that , the url for my page is (satnav-eg.com/test2) , please check it out and try to help me with this issue thanks in advance Hi Please see watermark.sc It works fine in Firefox but header alignment is not proper in IE What might be the problem? San Hi I have a website that i want to push to the center of the page for high resolutions.. i added a div tag for it as <div align=center> //all data here </div> now everything is pushed to the center except the menu divs and logo divs. they are pusing to the very center of the page, i mean starting from the center of the page and not on their proper place.. the problem is only in IE in firefox it works well.. here is my css code for logo and menu #header .logo{ margin: 15px 5px; position: absolute; } #header .menu{ position: absolute; margin-top: 1px; margin-left: 158px; } can anyone please advice me how can I fix this problem so that it works with ff and ie both thanks Hi, would you tell me please what do I have to do to make this code look in IE6 the same way as it looks in FireFox 3.0.5 In FireFox fields are as expected - City and ZipCode each on different lines. In IE6 they are on the same line (Zipcode label is on the same horizontal level as City)and the rest of the second line(Zipcode) starts at the beginning of the next line(without offset) Code: <style type="text/css"> .formInput:after, .formInput .formField:after{ clear:both;display:block;visibility:hidden;height:0;content:'.'} .formField {float:left;width:40%;} .formInput{position:relative;} .formInput div.ex{position:static;left:24%; width:5em} .formLabel {float:left;width:25%;text-align:right;} </style> <div style="width:700px"> <form> <div id="cityFld" class="formInput"> <div class="formLabel"><label for="city">City</label></div> <div class="formField"> <input type="text" name="city" id="city" value=""> <div class="ex">city explanation</div> </div> </div> <div id="zipFld" class="formInput"> <div class="formLabel"><label for="city">Zipcode</label></div> <div class="formField"> <input type="text" name="zip" id="zip" value=""> <div class="ex">zip explanation</div> </div> </div> </form> </div> |