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
Old 10-18-2008, 04:11 PM IE removes borders
lizciz's Avatar
Webmaster Talker

Posts: 744
Name: Mattias Nordahl
Location: Sweden
Trades: 0
Hi

I give up, I can't find the problem nor any solution.
In a div tag I have some images, which are themselves inside div tags for positioning. I'm using a set width of the surronding div tag and the image elements are placed using float:left; and also a set width, so that there are room for 5 images per row. So if there are more than 5 images the next one hops down underneath the first one and so on.

The surounding div has a border, which for some reason IE doesn't display... sometimes. When the page is loaded you can't see it, as if the images are on top of it and thereby hiding it. When you do some things (scroll, highlight or click things for example) the border somtimes get visible. If there are more than 5 images, and thereby 2 rows of images, the upper border only covers the lower row, as if the surounding div doesn't stretch to cover them all.

There must be something wrong with the way I use float, clear or something.. I just dont know! Please help. From the links below you can find the page and css code. The classes you wanna look at is probably

.kittens .images { ... } //the surounding div element
.kittens .images .image { ... } //div elements which holds the actual image tag

And also there is a class 'break', which is placed after the floating divs to make the surounding div stretch downwards. It looks like this
/* A simple, empty div tag to place after div tags with float */
.break {
width:100%;
clear:both;
margin:0;
padding:0;
line-height:0;
font-size:0;
}

http://www.kattakombens.com/index.php?page=kittens
http://www.kattakombens.com/css/kittens.css

You should probably look at the page in FF first for the correct view. Then when seeing it in IE you'll spot the problem.

Thanks
lizciz
lizciz is offline
Reply With Quote
View Public Profile Visit lizciz's homepage!
 
 
Register now for full access!
Old 10-18-2008, 08:20 PM Re: IE removes borders
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
Quote:
When you do some things (scroll, highlight or click things for example) the border somtimes get visible.
That is called the 'peekaboo bug' - learn more about it here:
http://www.positioniseverything.net/.../peekaboo.html

You're also kicking off the doubled-float margin bug in places where you're floating left or right and applying a margin left or right to the same box. You'll find the solution to THAT bug on the same site as above.

I can't believe you'd go to the trouble of using divs and css and then stick the whole thing into a table....
__________________
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 10-18-2008, 09:37 PM Re: IE removes borders
lizciz's Avatar
Webmaster Talker

Posts: 744
Name: Mattias Nordahl
Location: Sweden
Trades: 0
Thank you LadynRed, that did it!

Come to think of it, I dont know why I used a table. It was basically a finished design I'd done earlier (with tables, before I'd really gotten the hang of divs), but I didn't finish the site. I picked it up later on and got the funcionality up first (because that's where I failed last time, with too much of a mess with classes, functions, libraries, databases etc.) and just reused most of the design.

Any way, thank you for the help!
lizciz is offline
Reply With Quote
View Public Profile Visit lizciz's homepage!
 
Reply     « Reply to IE removes borders
 

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 1.51442 seconds with 12 queries