CSS - Gaps Between Images? (firefox)
http://67.177.129.17/BrianRoyer/xhtml%20compliant/
Why are their gaps between the logo, navigation row, and content area only in firefox? /ssi/style.css for stylesheet Thanks guys. Similar TutorialsIn IE6 (only) my price tag images have gaps. I have attached a screen shot of my homepage in IE6. {well can't add an image because I cannot post my url} Here is the code: #switcher .active { margin-top: 6px; } #switcher a.product { position: relative; display: block; } #switcher a.product span.tag { color: #ffffff; font-size: 22px; position: absolute; top: 5px; left: -23px; display: block; background: url(images/featured-small-tag.png) no-repeat bottom right; padding-right: 11px; } #switcher a.product span.tag span { display: block; background: url(images/featured-small-tag.png) no-repeat; padding-left: 9px; height:36px; padding-top: 9px; } Your help would be greatly appreciated. Can someone please help this newbie to css figure something out? In firefox, the images in my sideboxes seem to appear fine. But in IE, they don't work at all. For example, please look at http://www.kettlebell.com/brandnewsite/five-minutes-with/tyveculus.html The CSS is found he http://www.kettlebell.com/brandnewsite/css.css Any ideas why this is not working in IE but does in FF? I had a problem earlier with my "snippets" not appearing in IE but working in FF. I was able to fix it by changing to "absolute" positioning. (which I don't understand why, but it worked). However, with these images, I've tried different compinations of positioning, but it doesn't seem to matter. Please, someone help! This is keeping me from wrapping it up! Thanks very much in advance. I am a total CSS newbie...but I am trying to make my page display properly in both IE and firefox... Right now IE is perfect, and firefox displays nothing in the center! http://www.charlotteweddingphotos.com Two CSS files: http://www.charlotteweddingphotos.c...resentation.css http://www.charlotteweddingphotos.c...-box-layout.css I searched the net, and people were talking about clearing, and this and that...let me know if you know what my problem is! Thanks so much in advance! For some reason repeating backgrounds won't repeat in Firefox unless I specify a height for the div. They show up ok in IE. This will display: Code: #contentcontainer { background-image: url('images/layout/content_bg.png'); background-repeat: repeat-y; height: 350px; width: 785px; font-size: 0px; margin: 0px; padding: 0px; background-color: #fff; } This won't: Code: #contentcontainer { background-image: url('images/layout/content_bg.png'); background-repeat: repeat-y; width: 785px; font-size: 0px; margin: 0px; padding: 0px; background-color: #fff; } I need to find a way around this as my pages are varying lengths. Any ideas? Thanks, Beardy on this page http://tampabay-online.org/cetr/artists.php I am getting lines under the images and text that are links (I do not want the line under the images). This happens in Firefox. It displays how I want it to in IE and Opera. I usually design my sites for Firefox but I really trust Opera's compliance. my css includes : Code: a img { border: none; } Any ideas where the lines are coming from? Thanks! <body> <div id="wrapper" style=" vertical-align:middle;"> <div id="border-top"> <div id="border-left"> <div id="border-right"> <div id="border-bottom"> </div> </div> </div> </div> </div> </body> body { background-color:#5E362C; margin: 0 0 0 0; } #wrapper { width: 828px; height: 558px; position:relative; left: 50%; margin-left:-414px; } #border-top { background-image: url(../Webdesign/MIRAGE services1_r2_c2.jpg); background-position:top left; background-repeat:no-repeat; width: 828px; height: 558px; } #border-left { background-image: url(../Webdesign/MIRAGE services1_r3_c2.jpg); background-position:top left; background-repeat:no-repeat; width: 828px; height: 558px; margin-top:20px; } #border-right { background-image: url(../Webdesign/MIRAGE services1_r3_c18.jpg); background-position:top right; background-repeat:repeat-y; width: 828px; height: 557px; margin-top:-20px; margin-bottom:20px; } #border-bottom { background-image: url(../Webdesign/MIRAGE services1_r10_c3.jpg); background-position:bottom right; background-repeat:no-repeat; width: 828px; height: 558px; margin-top:-1px; } Thanks for the help ! Firefox is putting a gray border on most of my images. The border is sometimes on the bottom or off to the right. If I add padding to the images sometimes the border will go away. The images are not links. I have basically covered every option in CSS to eliminate the problem with no prevail my CSS: Code: body img{ padding: 0; border:none; -moz-border-radius: 0; -khtml-border-radius: 0; -webkit-border-radius: 0; border-radius: 0; -webkit-box-shadow: 0 0 0 #000; -moz-box-shadow: 0 0 0 #000; text-decoration: none; outline:none; overflow: hidden; } Hopefully someone has encountered this before or has some information to help? You'll have to bear with me on the CSS, the file is a mess. I couldn't get it to do what I want, so I had to copy the file from someplace else, so there's alot of code commented out. The HTML is much cleaner though! The issue is in the image above is that the 'Contact' and 'Back to Projects' images are too high in Safari. In IE and Firefox they're placed correctly. All the other images on the rest of the site line up fine, as you can see with the JW logo, Resume link, and even the bar across the screen All the images are in their own < li > (I think it's weird myself, but it works). And the placement is done in the CSS. Code: <li id="ResumeHigh"><a href="resume.asp" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('resume','','images/resume_rollover.gif',1)"><img src="images/resume.gif" name="resume" border="0" id="about" /></a></li> <li id="ContactHigh"><a href="contact.asp" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('contact','','images/contact_rollover.gif',1)"><img src="images/contact.gif" name="contact2" border="0" id="contact2" /></a></li> <li id="BackHigh"><a href="index.asp" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Back','','images/back_to_proj_rollover.gif',1)"><img src="images/back_to_proj.gif" name="Back" width="141" height="9" border="0" id="Back" /></a></li> And the CSS Alignment: Code: #ResumeHigh {left:550px; top: 62px; width: 141px; height: 11px;} #ContactHigh {left:550px; top: 78px; width: 141px; height: 11px;} #BackHigh {left: 550px; top: 101px; width:141px; height:9px;} Full Pages: http://www.jerrywatersarchitect.com/sample/contact.asp http://www.jerrywatersarchitect.com/sample/jw2.css Any ideas whats causing the 'Contact' and 'Back to Projects' to be a few pixels too high? I appreciate any help you can provide. Hey guys i have some image layout problems with my images on safari and firefox on Mac only. Firefox and safari on PC seem fine but its only happening on Mac. The positioning of the images have moved dramatically. Not sure how to fix it CSS is validated and so is xhtml strict Sorry, often made request but I can't get it sorted - please can someone tell me why I have gaps in FF between header, maincontent and footer at http://tinyurl.com/hnmmf mucho thanks Hi I was wondering why there are aps at the end of navbar: http://www.wnv2.com/v9.php . Here's the css, view source for html CSS: Code: /*** CSS Document (C) WNV2.com . Feel free to use this file; give me an email, I'd like to see who this code is benfiting ***/ body { margin: 0; padding: 0; background: #65b240 url(bg.jpg) repeat-x; font: 11px Verdana, Arial, Helvetica, sans-serif; color:#385e26; } a, A:visited { font-weight:bold; } a:hover{ color:#593; } /*------------Content CSS----------*/ .hometop{ background-image:url(home_300_bg.gif); font-weight: bold; text-align:center; } .home_sidetop{ background-image:url(home_150_bg.gif); font-weight: bold; text-align:center; } input, select, textarea { font: 11px Verdana, Arial, Helvetica, sans-serif; border: 1px solid #CCC; } /*---------- Divs ------------*/ #switchstyle { text-align:left; } #switchstyle .lite, #switchstyle .lite a { width: 17px; height: 16px; background-image: url(switch.gif); } #switchstyle .lite a:hover { width: 17px; height: 16px; background-image: url(lite.gif); } #switchstyle .green, #switchstyle .green a { width: 17px; height: 16px; background-image: url(switch.gif); } #switchstyle .green a:hover{ width: 17px; height: 16px; background-image: url(green.gif); } #wrapper { margin:auto; padding: 0px; width: 600px; } #header { margin: 0px; padding: 0px; width: 600px; height: 85px; background-image:url(top.jpg); } #navigation { margin: 0 auto; padding: 0px 50px; width: 500px; height: 25px; text-align:center; } #navigation ul { margin: 0px; padding: 0px; height:25px; list-style-type: none; background-color:#ddd; } #navigation li { display: inline; padding: 5px 7px; } #navigation li a { color:#385E26; font-weight:bold; height: 25px; text-decoration:none; background-color:#ddd; } #navigation li a:hover { color:#593; font-weight:bold; height: 25px; text-decoration:underline; } #navigation .left_nav { float: left; width: 22px; height: 25px; background-image:url(nav_left.jpg); } #navigation .right_nav { float: right; width: 22px; height: 25px; background-image:url(nav_right.jpg); } #middle{ background-image:url(middle.jpg); background-repeat: repeat-y; width:600px; } #navigation .spacer { width: 5px; height: 5px; display: block; background-image:url(nav_spacer.gif); } #contentswrapper { margin: 0px; padding: 5px 55px; text-align: left; width: 490px; } #bottom { height:90px; width:600px; background-image:url(bottom.jpg); } /*---------- Tutorials ------------*/ .b-tut-tlb { border-top: 1px dotted #593; border-left: 1px dotted #593; } .b-tut-trb { border-right: 1px dotted #593; border-top: 1px dotted #593; text-align: left; } .row_one { background-color: #DEDEDE; } .row_one a:hover { background-color: #FFF; } .row_two { background-color: #EEE; } .row_two a:hover { background-color: #FFF; } I wonder if anyone could help me with a problem I am having? I am trying to build a fairly simple website, that is currently working fine in Firefox, but IE is adding gaps between the header Div and the Sidebar Div I've uploaded a test version to http://fatboonproductions.co.uk/ As you can see in IE there is a huge gap between the logo and the Nav menu. How do I remove this? The CSS is below (and is based off a dreamweaver template) Code: @charset "utf-8"; body { font: 100% Verdana, Arial, Helvetica, sans-serif; background-image: url(img/bk2.jpg); background-repeat: repeat-x; margin: 0; /* it's good practice to zero the margin and padding of the body element to account for differing browser defaults */ padding: 0; text-align: center; /* this centers the container in IE 5* browsers. The text is then set to the left aligned default in the #container selector */ color: #000000; } .twoColFixLtHdr #container { width: 820px; /* using 20px less than a full 800px width allows for browser chrome and avoids a horizontal scroll bar */ min-width:inherit; max-widt:840; background: #FFFFFF; margin: 0 auto; /* the auto margins (in conjunction with a width) center the page */ border: 1px solid #000000; text-align: left; /* this overrides the text-align: center on the body element. */ } .twoColFixLtHdr #header { height:184px; padding: 0; /* this padding matches the left alignment of the elements in the divs that appear beneath it. If an image is used in the #header instead of text, you may want to remove the padding. */ color: #000000; background-color: #ffffff; background-image: url(img/head.jpg); background-repeat: no-repeat; background-position: left top; margin: 0px; } .twoColFixLtHdr #header h1 { margin: 0; /* zeroing the margin of the last element in the #header div will avoid margin collapse - an unexplainable space between divs. If the div has a border around it, this is not necessary as that also avoids the margin collapse */ padding: 0px 0; /* using padding instead of margin will allow you to keep the element away from the edges of the div */ } .twoColFixLtHdr #sidebar1 { float: left; /* since this element is floated, a width must be given */ width: 200px; /* the actual width of this div, in standards-compliant browsers, or standards mode in Internet Explorer will include the padding and border in addition to the width */ background: #ffffff; /* the background color will be displayed for the length of the content in the column, but no further */ padding: 0px 0px 0px 0px; } .twoColFixLtHdr #sidebar12 { float:none; /* since this element is floated, a width must be given */ width: 200px; /* the actual width of this div, in standards-compliant browsers, or standards mode in Internet Explorer will include the padding and border in addition to the width */ background: #ffffff; /* the background color will be displayed for the length of the content in the column, but no further */ padding: 0px 0px 0px 20px; } .twoColFixLtHdr #mainContent { float:inherit; margin: 0 50px 0 250px; /* the left margin on this div element creates the column down the left side of the page - no matter how much content the sidebar1 div contains, the column space will remain. You can remove this margin if you want the #mainContent div's text to fill the #sidebar1 space when the content in #sidebar1 ends. */ padding: 0 0px; /* remember that padding is the space inside the div box and margin is the space outside the div box */ } .twoColFixLtHdr #footer { padding: 0 10px 0 20px; /* this padding matches the left alignment of the elements in the divs that appear above it. */ background:#ed1b24; } .twoColFixLtHdr #footer p { margin: 0; /* zeroing the margins of the first element in the footer will avoid the possibility of margin collapse - a space between divs */ padding: 10px 0; /* padding on this element will create space, just as the the margin would have, without the margin collapse issue */ } .fltrt { /* this class can be used to float an element right in your page. The floated element must precede the element it should be next to on the page. */ float: right; margin-left: 8px; } .fltlft { /* this class can be used to float an element left in your page */ float: left; margin-right: 8px; } .clearfloat { /* this class should be placed on a div or break element and should be the final element before the close of a container that should fully contain a float */ clear:both; height:0; font-size: 1px; line-height: 0px; } any insights would be great. Cheers sorry for the newbie question. i have the following style #container {background-color:#CCCCCC; border:1px solid black; width:80%; height:80%; margin:10px auto;} #subcont1 { background-color:#6699CC; border-bottom-width:thin; border-bottom-style:dotted; border-color:#333333; width:50%; margin-left:100px; padding:1em; margin-top:30px; } then i use <div id="container"> <div id="subcont1">some text goes here</div> <div id="subcont1">some text goes here</div> <div id="subcont1"> more text ...</div> </div> when it displays, i see gaps between the subcont1 (s). also, how can i make sure that border-bottom length is 3/4 of the total length ? thanks for the help I've been trying to make this layout for about 5 hours now and i'm about to give up and just use tables. The problem is that everytime i make it work in firefox, it ****s up in IE. I was able to fix the gaps in firefox by using a negative margin but no luck in IE. I figure i'm not the first person to experience this so i searched for solutiosn but all i got was solutions for the list problems. I would really appreciate any help CSS(it contains my various attempts at fixing it) Code: #container { width:806px; min-height:610px; border-color: #666666; border-style: solid; border-width:3px; z-index: 1; margin: 0pt; padding: 0pt; } #left { min-height:586px; width:130px; padding-right: 0pt; margin-left: 0pt; border:none; float:left; display: inline; } #menu { background-color: #eeeeee; width:130px; height:85px; vertical-align: top; display: none; } #logo { width:673px; height:73px; position: relative; background-color:#ffffff; display: block; float:right; } #top_bar { width:673px; height:50px; background-color: #666666; position:relative; boder-width:0px; display: inline; float:right; vertical-align: top; } #divider { width:673px; height:24px; background-image: url("images/divider.jpg"); background-repeat: repeat-x; position: relative; margin-left:-5px; float:right; } #content { width:668px; min-height:300px; float:right; } #bot_bar { width:668px; height:24px; background-image: url("images/bbarbg.jpg"); float:right; display: block; } #body_bg { width: 100%; height: 100%; left: 0px; top: 0px; position: absolute; z-index: -1; } html code(everythin inside body) Code: <body background="images/bg.jpg" bgcolor="#FFFFFF" style="background-repeat: repeat-x"> <div id="container"> <div id="left"> <img src="images/main_02.jpg" width="130" height="125" alt=""> <div id="menu"><img src="images/main_09.jpg" width="130" height="20" alt="" vspace="0"><img src="images/main_10.jpg" width="130" height="21" alt=""vspace="0"><img src="images/main_12.jpg" width="130" height="23" alt=""vspace="0"><img src="images/main_13.jpg" width="130" height="21" alt=""vspace="0"><img src="images/main_14.jpg" width="130" height="20" alt=""vspace="0"></div> <img src="images/main_15.jpg" width="130" height="35" alt="" onclick="tongle()"> </div> <div id="top_bar"></div> <div id="logo"> <img src="images/main_06.jpg" width="668" height="73" alt=""> </div> <div id="divider"> </div> <div id="content"> ds <p>ds</p> <p>s</p> <p></p> <p></p> <p></p> <p></p> <p></p> <p></p> <p></p> <p></p> <p></p> <p></p> <p></p> </div> <div id="bot_bar">dasdsad</div> </div> </body> The usual story - looks fine in FF, big gap in IE between the second and third elements. I've tried lots of different positioning methods that again look fine in FF but have similar spacing problems in IE. I've also looked at lots of similar questions on forums but none of the fixes seem to apply. Take a look (in IE of course) and perhaps you have some insight: hire.karenjeane.com/web/site4.php hire.karenjeane.com/web/style4.css Thanks muchly for the help! Hi, I looked on your forum trying to find the answer it may be I don't know the correct term. If so, please forgive me. I am trying to do some changes to my site and I have existing tables and wanted to put in a background color in a td. The code in question is about 14 lines of code down. Here is the new look and feel page http://www.test222.whsites.net/home.php Look at the left hand column near the top you will see the word "SEARCH" bordered in green. There is a 2-3 pixel gap between the end of the border around SEARCH and the border around the navigation bar. That is what I want to get rid of. Can anyone give me some direction as to why that is doing that. I want to do that on all the headings if I can get rid of the gap. Also, the code below has gaps where other tables are located. Due to space considertations I shortened the code. Thanks, Randal Just look for the CSS categoryborder - Here is my code: Code: <table width="150" class="tableborder" bgcolor="#FFFFFF" > <tr> <td width="148"> </td> </tr> ******************* This is my problem ******************** <tr bordercolor="#99CC99"> <td valign="top" class="categoryborder"><center> SEARCH </center></td> </tr> ********************************************************* <tr bordercolor="#99CC99"> <td valign="top"> <table width="147" border=0 align="center"> <TR> <Td width="146" align=center> <FORM METHOD=GET ACTION="/isearch2/index.php/"> <table border=0> <TR><td> <input maxLength="255" name=s size=10 value=""> <input type=submit value="Go"> <input type="hidden" name="action" value="search"> </td> </TR> </TABLE> </FORM> </Td> </TR> </TABLE></td> </tr><tr> <td valign="top" bordercolor="#006633" border="1" bgcolor="#FFFF99"><center> <span class="temp_body_bold">CLEANSING</SPAN> </center></td> </tr> <tr> <td valign="top"><div align="left"> </div></td> </tr> <tr> <td valign="top" bgcolor="#FFFF99"><center> <span class="temp_body_bold">BUSINESS OPPORTUNITIES</SPAN> </center></td> </tr> <tr> <td valign="top" bgcolor="#FFFFFF"> <div align="left"> </div></td> </tr> <tr> <td bgcolor="#FFFF99"> <center> <span class="temp_body_bold">100% ESSENTIAL OILS</span> </center></td> </tr> <tr> <td valign="top" bgcolor="#FFFFFF"> </td> </tr> <tr> <td valign="top" bgcolor="#FFFF99"><center> <span class="temp_body_bold">FREE NEWSLETTER</SPAN> </center></td> </tr> <tr> <td valign="top"><center> <span class="temp_body_bold"><b>Health Tip & Weekly Specials</b></span> </center> <form name="" method="post" action="http://www.thefrugallife.com/12all/box.php"> </form> </td> </tr> <tr> <td bgcolor="#FFFF99"><center> <span class="temp_body_bold">WEIGHT LOSS </SPAN> </center></td><tr><td valign="top"> <div align="left"> </div></td> </tr> <tr> <td valign="top" bgcolor="#FFFF99"><center> <span class="temp_body_bold">SPIRITUAL HEALTH</SPAN> </center></td> </tr> <tr> <td valign="top" bgcolor="#FFFFFF"><center> <div align="left"> </div> </center></td> </tr> <tr> <td valign="top" bgcolor="#FFFF99"><center> <span class="temp_body_bold">FOR YOU </SPAN> </center></td> </tr> <tr> <td valign="top" bgcolor="#FFFFFF"> </td> </tr> <tr> <td valign="top" bgcolor="#FFFF99" ><center> <span class="temp_body_bold">PETS</span> </center></td> </tr> <tr> <td valign="top" bgcolor="#FFFFFF" ><center> <div align="left"> </div> </center> </td> </tr> <tr> <td bgcolor="#FFFF99"> <center> <span class="temp_body_bold">VISIT OUR OTHER SITES </span> </center></td> </tr> <tr> <td valign="top" bgcolor="#FFFFFF"> </td> </tr> <tr> <td valign="top" bgcolor="#FFFF99"><center> <span class="temp_body_bold">SHOP</span> </center></td> </tr> <tr> <td bgcolor="#FFFFFF" align="center"> <span class="temp_body_bold"><a href="http://www.theherbsplace.com/Online_Catalog_sp_59.html">Online Catalog</a></span> </td> </tr> </table> Here is the CSS code: Code: .categoryborder { position: relative; left: 10px; background-color:#FFFF99; padding:0px; font-family: "Arial"; font-size: 11px; color: #000000; font-weight: bold; } .tableborder { border: 1px solid #006633; padding:0px; } Hi, I am trying to create a dropdown menu at present but for some reason there is a large gap between each row of data on this menu. I have tried everything but cannot work out how to remove these gaps. Any help greatly appriciated. Thanks, David hello all, i'am at complete loss for now. my site promodivin uses mootools to enrich it by adding slides and accordeon effects. Works great with IE and FF but using Safari it displays huge blank sections. My text's gone. It's even clearer on the 'Services' tab where I can see some narrow sections. To make the effects work, you may click on the headers and it should collapse the appropriate section. I believe the issue stems from the ids used only for the purpose of mootools. Here's an html exerpt from the frontpage: Code: <div id="h_toggle1"><a href="#"> <h1>Communication</h1> </a></div> <div id="horizontal_slide1"> <ul class="bullet_point"> ... and the titre_toggle.css describing the elements used. Code: h3.section { margin-top: 1em; } #vertical_slide1, #horizontal_slide1, #vertical_slide2, #horizontal_slide2, #vertical_slide3, #horizontal_slide3 { background: #E6EAEF; margin-top: 0; padding: 10px 10px 0 10px; border: 1px solid #D5D8DD; } #h_toggle1, #h_toggle3, #h_toggle2 { } div.marginbottom { /* Since the Fx.Slide element resets margins, we set a margin on the above element */ margin-bottom: 10px; } I'll appreciate any insight. safari 4.0.3 --> KO IE 6+ --> OK FF 3.5 --> OK mootools 1.2.4 joomla 1.5.15 |