Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3

Thread: Border problem

  1. #1
    Senior Coder
    Join Date
    Dec 2005
    Location
    Slovenia
    Posts
    1,991
    Thanks
    120
    Thanked 76 Times in 76 Posts

    Border problem

    Can't get gray border to surround my icons. What is the prob. here:http://agrozoo.net/dump/test.html
    Last edited by BubikolRamios; 11-23-2011 at 10:46 AM.
    Found a flower or bug and don't know what it is ?
    agrozoo.net galery
    if you don't spot search button at once, there is search form:
    agrozoo.net galery search

  • #2
    Master Coder Excavator's Avatar
    Join Date
    Dec 2006
    Location
    Alaska
    Posts
    9,684
    Thanks
    22
    Thanked 1,828 Times in 1,812 Posts
    Hello BubikolRamios,
    You need to clear your floats.
    Add overflow: auto; to .rating_mc_container.

    See this explanation of how overflow: auto; clears your floats.


    That has the added benefit of show you how you've broken the box model, that's why the scroll bar shows up.
    See the box model here. The box model says that whatever you put inside an element cannot be larger than that element. margin/padding/border all count when figuring width/height.
    Validate often DURING development - Use it like a splelchecker | Debug during Development |Write it for FireFox, ignore IE
    Use the right DocType | Validate your markup | Validate your CSS | Why validating is good | Why tables are bad

  • Users who have thanked Excavator for this post:

    BubikolRamios (11-23-2011)

  • #3
    Senior Coder
    Join Date
    Dec 2005
    Location
    Slovenia
    Posts
    1,991
    Thanks
    120
    Thanked 76 Times in 76 Posts
    Thanks.

    Already forgot about that thing clearing floats (-:
    Found a flower or bug and don't know what it is ?
    agrozoo.net galery
    if you don't spot search button at once, there is search form:
    agrozoo.net galery search


  •  

    Posting Permissions

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