Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
Problem with site displaying in IE and FireFox
Old 09-29-2007, 08:02 AM FIXED: Problem with site displaying in IE and FireFox
Junior Talker

Posts: 4
Trades: 0
Hello, I'm having an issue with my site (blog).
In IExplorer everything looks like it should, but in Firefox there is a problem.

I've taken the liberty to put up some screenshots, they say so much more . (Images are hosted on my Flickr account if you are wondering)


If anyone could tell me what I'm doing wrong here, I'd very much appreciate it.


IExplorer screeny
Firefox screeny


The html to display the box is the following:


Code:
<div class="container-sidebar">  
<div class="sidebar"> 
<h2>Most Commented Posts</h2> 
<?php n4r_most_commented_posts(6);?> 
</div> 
<div class="sidebar2"> 
<a href="http://www.link.com/"><img src="http://www.link.com" width="120" height="60" alt="text" /></a> 
<br><br> 
<a href="http://www.link.com"><img src="http://www.link.com" width="120" height="60" alt="text" /></a> 
</div> 
</div>
The CSS is the following:

Code:
div.container-sidebar{ 
  margin-left: 6px; 
  margin-bottom: 6px; 
width: 500px; 
text-align: left; 
background-color: #F4F4F4; 
padding-top: 2px; 
padding-bottom: 2px; 
padding-left: 4px; 
padding-right: 4px; 
} 
.sidebar { 
  padding: 0px; 
  margin: 0px; 
  list-style: none; 
  font-size: 1.0em; 
 line-height:150%; 
 color: #000000; 
 text-align: left; 
 font-family: Verdana, Helvetica, Geneva, sans-serif; 
 font-weight: normal; 
 font-style: normal; 
  margin: 4px; 
  float: left; 
 } 
.sidebar2 { 
  padding: 0px; 
  margin: 0px; 
  list-style: none; 
  font-size: 1.0em; 
 line-height:50%; 
 color: #000000; 
 text-align: right; 
 font-family: Verdana, Helvetica, Geneva, sans-serif; 
 font-weight: normal; 
 font-style: normal; 
  margin: 8px; 
  float: right; 
 }

Last edited by Stefson; 09-30-2007 at 08:03 AM.. Reason: FIXED
Stefson is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 09-29-2007, 01:09 PM Re: Problem with site displaying in IE and FireFox
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
IE 6 does not support IE transparency if you're using transparent PNGs.
IE also has a seriously busted box model, so what IE is doing is, in most cases, wrong, and Firefox's display is correct.

As with most of these templates, you probably have more than one CSS file and no one can diagnose your problem from the one small snippet you've posted. There's usually far more going on and the interaction of ALL of the CSS and html is what we need to see.

Is the blog posted and can we see the url instead ?
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 09-29-2007, 02:39 PM Re: Problem with site displaying in IE and FireFox
Junior Talker

Posts: 4
Trades: 0
Sure thing.
The url is http://www.stefson.com
Stefson is offline
Reply With Quote
View Public Profile
 
Old 09-30-2007, 04:57 AM Re: Problem with site displaying in IE and FireFox
Junior Talker

Posts: 4
Trades: 0
Okay.
Found out what was causing the problem.

you need to add a clearing method to the box. The columns are both 'floated' so you need to clear them so that the container box wraps them both. A method might be to use the easy clearing method.

Check out this article about clearing a float container
Stefson is offline
Reply With Quote
View Public Profile
 
Old 09-30-2007, 12:06 PM Re: Problem with site displaying in IE and FireFox
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
Yup, floats must be cleared, glad you found it. P.I.E. is a super resource.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Problem with site displaying in IE and FireFox
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.21151 seconds with 12 queries