css div problem

Discussion in 'CSS' started by itsmani1, Mar 24, 2006.

  1. #1
    i have problem in my css please see
    http://work.hostbreak.com/aura1/aurasite.php
    when i open this page in IE it shoes me horzental white line but when i open it in FF it don't show this, how i can remove it form IE.
    my 2nd problem is :
    in IE there is problem in bottom image, its bit on right site in IE, but it fine in FF.
    can anyone help me
    thanks.
     
    itsmani1, Mar 24, 2006 IP
  2. kk5st

    kk5st Prominent Member

    Messages:
    3,497
    Likes Received:
    376
    Best Answers:
    29
    Trophy Points:
    335
    #2
    Not tested.

    Try

    img {vertical-align: bottom;}

    As to problem #2, I don't see what you're talking about.

    It will be more difficult to debug your page without semantic and structural markup.

    cheers,

    gary
     
    kk5st, Mar 25, 2006 IP
  3. itsmani1

    itsmani1 Peon

    Messages:
    33
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    my main problem is problem one, which is : when i open page in IE it shows me a while line but in FF it works fine, i want to remove this white space?

    tahanks
    AM
     
    itsmani1, Mar 27, 2006 IP
  4. just-4-teens

    just-4-teens Peon

    Messages:
    3,967
    Likes Received:
    168
    Best Answers:
    0
    Trophy Points:
    0
    #4
    just-4-teens, Mar 27, 2006 IP
  5. Tam

    Tam Peon

    Messages:
    89
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #5
    I did take a look but your code is so long and has so many errors, I gave up :(

    Validating it would be a start, there are some errors in that respect, also you have a link to a style sheet within your body tags which is making IE throw a wobbly. Most importantly, you really could refine your CSS file, it is an unholy 1409 lines long (eek!) and you have some same style declarations in both the style sheet and html.

    I think it might be quicker to start again :(, sorry m8.

    However, IE does seem to like to add a blank line under images in a div, some say it adds padding on the bottom, but I often use this as a kind of insurance against that (but it wont work in yours, there must be an inherited declaration or bad syntax that is buggering it up)...

    img { line-height: 0px; display: block; }
    Code (markup):
    Some might say its an overkill but I like to see it as a cure-all.


    Sorry I couldn't solve it for you, but you need to do some work on your code (it takes an age to load as well). Your external css file is over 1400 lines of code, it shouldn't be that laborious for what you want to achieve.
     
    Tam, Mar 27, 2006 IP
  6. itsmani1

    itsmani1 Peon

    Messages:
    33
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    can you please help or guide how i can reduce size of css code? i am new to css based pages and i use new div for everything. if i use one dive more than once it creates problems for me.

    thanks much
    AM
     
    itsmani1, Mar 28, 2006 IP
  7. 87654321

    87654321 Well-Known Member

    Messages:
    317
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    110
    #7
    You can try this:

    change

    #images_list{
    	border: 0px solid #00CC00;
    	padding-left:0px;
    	display: block;
    	padding-right:0px;
    	width: 782px;
    	height: 88px;
    }
    Code (markup):

    to

    #images_list{
    	border: 0px solid #00CC00;
    	padding-left:0px;
    	display: block;
    	padding-right:0px;
    	width: 782px;
    	height: 88px;
    	padding: 0px;
    	margin: 0px;
    }
    Code (markup):
    so basically you are adding

    	padding: 0px;
    	margin: 0px;
    Code (markup):
    what they do is make sure that the space between the <div>s is 0!

    this should work! :D
     
    87654321, Mar 29, 2006 IP