Discover Habbo's history
Treat yourself with a Secret Santa gift.... of a random Wiki page for you to start exploring Habbo's history!
Happy holidays!
Celebrate with us at Habbox on the hotel, on our Forum and right here!
Join Habbox!
One of us! One of us! Click here to see the roles you could take as part of the Habbox community!


Page 1 of 2 12 LastLast
Results 1 to 10 of 12
  1. #1
    Join Date
    Oct 2005
    Location
    Melbourne, Australia
    Posts
    7,554
    Tokens
    0

    Latest Awards:

    Default [CSS] Problem.. +rep

    Hello everyone.
    I am new to CSS, and am having a stupid problem!
    I have a layout (designed/coded blahblah by me, yes it is simple ) in CSS/DIVS but there is a huge problem..

    Anyway, the main problem is that it works fine in I.E but not in Firefox.
    In Firefox just below and above the writing boxes there are huge white gaps that shouldn't be there.. But i dont know how to remove them..

    Can anybody help me with this problem? Here is a link to the site:
    Site
    CSS

    CSS Code:


    Pictures if anyone prefers that..



    +rep to all who help

  2. #2
    Join Date
    Dec 2006
    Location
    Swindon
    Posts
    3,299
    Tokens
    215
    Habbo
    dunko

    Latest Awards:

    Default

    add overflow: hidden; to the div that has white space.

  3. #3
    Join Date
    Oct 2005
    Location
    Melbourne, Australia
    Posts
    7,554
    Tokens
    0

    Latest Awards:

    Default

    I think my main problem is.. I dunno which one it is?

    Ill add it to them all, or does that ruin it?

  4. #4
    Join Date
    Jul 2005
    Location
    North Wales
    Posts
    4,233
    Tokens
    1,544

    Latest Awards:

    Default

    Quote Originally Posted by Blinger View Post
    I think my main problem is.. I dunno which one it is?

    Ill add it to them all, or does that ruin it?
    It should be pretty easy to see what div is causing it.

  5. #5
    Join Date
    Oct 2005
    Location
    Melbourne, Australia
    Posts
    7,554
    Tokens
    0

    Latest Awards:

    Default

    Yeah, i just added it to them all.. seems fine now (well, the head/bottom parts )

    Also, is it just my coding or does this just not work?
    If I have a <br> then it does not add the little indent? (sorry if this is noobish/annoying)

    Code:
    p{
    	font-size: 12px;
    	font-family: Verdana, Arial, Helvetica, sans-serif;
    	color:#000000;
    	text-indent: 10px;
    
    }

  6. #6
    Join Date
    Feb 2007
    Location
    Essex, England
    Posts
    1,392
    Tokens
    0

    Latest Awards:

    Default

    Quote Originally Posted by Blinger View Post
    Yeah, i just added it to them all.. seems fine now (well, the head/bottom parts )

    Also, is it just my coding or does this just not work?
    If I have a <br> then it does not add the little indent? (sorry if this is noobish/annoying)

    Code:
    p{
        font-size: 12px;
        font-family: Verdana, Arial, Helvetica, sans-serif;
        color:#000000;
        text-indent: 10px;
    
    }
    It doesn't indent a <br />/<br> because you have styled the p tag


  7. #7
    Join Date
    Aug 2005
    Location
    London
    Posts
    9,773
    Tokens
    146

    Latest Awards:

    Default

    Add
    Code:
    p {
      margin: 0px;
      padding: 0px;
    }
    to your CSS
    Paragraph/header tags come with defualt padding and margins set to them so that's what's causing you problems .

  8. #8
    Join Date
    Oct 2005
    Location
    Melbourne, Australia
    Posts
    7,554
    Tokens
    0

    Latest Awards:

    Default

    Quote Originally Posted by L?KE View Post
    It doesn't indent a <br />/<br> because you have styled the p tag
    Does that same even with a <br> tag...

  9. #9
    Join Date
    Jul 2005
    Location
    North Wales
    Posts
    4,233
    Tokens
    1,544

    Latest Awards:

    Default

    Quote Originally Posted by Blinger View Post
    Does that same even with a <br> tag...

    Indent only indents the first line so if the first line is only <br /> then you will see no indent as <br /> is indented but it’s a line break so it’s not visibly indented, if you get my dift.

  10. #10
    Join Date
    Feb 2007
    Location
    Essex, England
    Posts
    1,392
    Tokens
    0

    Latest Awards:

    Default

    I think what tom means is that it has to be visible content before it is indented?

    If that makes it any easier


Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •