CSS pain in t.a!
- Started
- Last post
- 18 Responses
- Atkinson
http://www.craigatkinson.co.uk/l… - I've just had it pointed out to me that in IE [suprise] this page can't be used due to scroll bars not working / covering the frame. This is the only frame in the whole site and I only used it because to my knowledge a blog can't be put within a div? Can anyone cure this problem for me? free zine = stickers for the winner!
- ismith0
First of all, kill the capitalized attributes (IFRAME to iframe). Then try putting quotes around the height and width variables, so "100%"
- Atkinson0
any good - anyone with IE 6 / 7?
- Atkinson0
yeah that horizontal scroll is still there, why damn it why?!!
- Atkinson0
yeah, IE is crap! FF and Safari are fine. There must be a fix for this?
- ismith0
In your CSS, add a padding: 0; and margin: 0; to body and iframe.
- ismith0
body {
........
margin: 0;
padding: 0;
}
iframe {margin:0;padding:0}
- trooper0
*{margin:0;padding:0}
- ismith0
It would be smart to do a complete CSS reset, but I don't know how specific he was with the other elements' attributes.
- Atkinson0
hm, to be honest I make it up as I go along and just see if it works - never been taught anything so still learning!
- http://code.google.c… You might want to try using something like this in the future.ismith
- I see, bit above me that but will have a crack next timeAtkinson
- All it does it take away the variance between browsers' default style attributes. You just stick that at the top of your CSS docismith
- document and then continue on as normal.ismith
- ismith0
It also looks like you might not have closed one of your <font> tags (which you shouldn't be using anyway) within #top_nav. Fix that, see what happens. Also consider stripping all your font tags and applying the style through CSS once you get this issue worked out.
- ismith0
Got to get back to work now, so hopefully someone else can help you out (someone less scatterbrained than me). There's a few overflow/scroll attributes to play with also (such as applying overflow-y: auto/none/scroll to the iframe in CSS).
- Atkinson0
anyone with IE check this please - I used the object thing
- ten40
try removing the doctype:
- trooper0
i'll sort this tonight for you dude. i'll re-do and comment the css to help you out!
- Atkinson0
fook, I have two scroll bars on every page now too, main div is on auto scroll. damn it



