Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 12-09-2005, 07:18 PM   PM User | #1
jodes
New to the CF scene

 
Join Date: Dec 2005
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
jodes is an unknown quantity at this point
There must be an easier way? - CSS, Browser compatibility

Hi,

I've been trying to be a good programmer and try to get to grips with CSS. What I thought I could code efficiently (being a simple page) has quickly become a mess. Not to mention, I'm now out of ideas as to how to actually get it to look how I want, nevermind good coding!

http://blueperfection.co.uk

The div with the excessively large black border is the problem - in firefox anyway. For some reason, it's not doing the same thing as the other similar divs.

I 'd really appreciate some good advice here! I'm sure there must be a much easier way?

Cheers
jodes is offline   Reply With Quote
Old 12-09-2005, 07:28 PM   PM User | #2
_Aerospace_Eng_
Supreme Master coder!


 
_Aerospace_Eng_'s Avatar
 
Join Date: Dec 2004
Location: In a place far, far away...
Posts: 19,293
Thanks: 2
Thanked 1,044 Times in 1,020 Posts
_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light
What is up with the negative positioning? I don't think thats needed. Let the page flow together. Use floats when necessary, don't use absolute positioning if possible. Use margin and padding to position elements instead rather than top and left properties. What exactly is th div supposed to be doing?
_Aerospace_Eng_ is offline   Reply With Quote
Old 12-09-2005, 07:49 PM   PM User | #3
pixelEngine
New Coder

 
Join Date: Dec 2004
Location: Minnesota
Posts: 69
Thanks: 0
Thanked 0 Times in 0 Posts
pixelEngine is an unknown quantity at this point
Also try to use your images as backgrounds as much as possible via css, and then perhaps a image replacment technique.... many to choose from.

Also you could benefit from a bit of image optimization i think.

good luck.
__________________
“That rug really tied the room together. ”
pixelEngine is offline   Reply With Quote
Old 12-10-2005, 05:10 PM   PM User | #4
jodes
New to the CF scene

 
Join Date: Dec 2005
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
jodes is an unknown quantity at this point
Wow thanks for your quick replies!! Since I didn't know myself what half the code was for anymore - I've scrapped all the css, and many divs to make a fresh start.

The problem started since I was using floats on the images in order to get them next to each other, which wasn't working. Now, instead, I've put display:block on them and now they're flush against each other :-)

Thanks for the advice!
jodes is offline   Reply With Quote
Old 12-10-2005, 06:55 PM   PM User | #5
jodes
New to the CF scene

 
Join Date: Dec 2005
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
jodes is an unknown quantity at this point
Hi again,

I've come accross some problems - namely nested floats in firefox.

I've tried some minor mods to get it working in firefox including floating the container of the inner floats, but it still only works in IE.

Any ideas?
Jodes

Last edited by jodes; 12-11-2005 at 02:50 AM..
jodes is offline   Reply With Quote
Old 12-11-2005, 03:05 AM   PM User | #6
jodes
New to the CF scene

 
Join Date: Dec 2005
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
jodes is an unknown quantity at this point
I've now discovered, for anyone else with this problem as well perhaps, that by isolating the inner divs inside a table with one cell, rather than a div, prevents the inner clears affecting the outer float. If theres another answer to this I'd love to know?
jodes is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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

Forum Jump


All times are GMT +1. The time now is 09:33 PM.


Advertisement
Log in to turn off these ads.