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 2 of 2
  1. #1
    sdm
    sdm is offline
    New to the CF scene
    Join Date
    Dec 2006
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    CSS height problem

    Hopefully someone may be able to shed some light on this for me.

    I have created a design for a CubeCart store but the centre column does not go all the way down as far as the content.

    If you visit http://www.partybasics.co.uk/index.php you will see what i mean on this page, I cannot seem to get it to expand properly. Below is the CSS for the centre box.

    .boxContent {
    padding: 3px;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 75%;
    color: #333333;
    background-color: #FFFFFF;
    margin-top: 20px;
    border: 1px solid #FA0A0B;
    }

    THanks for your time.

    SDM

  • #2
    Regular Coder
    Join Date
    Oct 2006
    Posts
    206
    Thanks
    1
    Thanked 0 Times in 0 Posts
    I recommend not using tables for layout and not using WYSIWYG editors. Both make pages much more difficult to 'debug'.

    If you make your img element a child of div#boxContent, you can then use an :after pseudo-class to make div#boxContent contain your image.
    Last edited by 1212jtraceur; 12-31-2006 at 03:22 PM.


  •  

    Posting Permissions

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