+ Reply to Thread
Results 1 to 3 of 3

Thread: More CSS help

  1. #1
    leafypiggy's Avatar
    leafypiggy is offline Community Advocate leafypiggy is on a distinguished road
    Join Date
    Aug 2007
    Location
    Massachusetts
    Posts
    2,228

    More CSS help

    Well, with my procrastination. I've put off finishing my theme for Christmas... until now. So I need some help fixing something.

    http://24.61.155.176/Christmas/

    The .left class won't expand to fill up it's parent element (.post).

    Any help is MUCH appreciated.
    Neil Hanlon | x10Hosting Support Representative
    Neil[at]x10hosting.com
    █ I'm always happy to help. Just ask a question in Free Hosting
    Terms of Service IRC

  2. #2
    misson is offline x10 Spammer misson is a jewel in the rough
    Join Date
    Mar 2008
    Location
    Libertatia
    Posts
    2,506

    Re: More CSS help

    The simplest solution is to apply the One True Layout that I linked to in a previous post.

    Code:
    #posts .post {
      overflow: hidden;
    }
    
    #posts .post .left {
        padding-bottom: 9000px;
        margin-bottom: -9000px;
    }
    
    #posts .post .post_info {
        padding-bottom: 9000px;
        margin-bottom: -8999px;
    }
    You can also remove the div.clear and div.p_info elements.

    I still don't approve of the name for the "left" class; it should be descriptive of the content rather than the styling; something like "post-info", changing the current "post_info" to something like "post-meta".
    Be sure to read all pages linked in this post; they have further information that should prove useful. When asking for help, make sure you follow Eric Raymond's and Jon Skeet's guidelines for prompt, accurate responses. Please answer any questions I ask; they're not rhetorical (probably). Any posted code is intended as illustrative example, rather than a solution to your problem to be copied without alteration. Study it to learn how to write your own solution.
    Misson, not Mission.

  3. #3
    frankfriend is offline x10 Lieutenant frankfriend is an unknown quantity at this point
    Join Date
    Feb 2008
    Posts
    406

    Re: More CSS help

    Neil,
    Try adding the W3CSS validator, and then when it displays on your browser, press it and see if you get detailkewd validation help.

    This may be the code you need to insert:

    <a href="http://jigsaw.w3.org/css-validator/check/referer">
    <img style="border:0;width:88px;height:31px"
    src="http://jigsaw.w3.org/css-validator/images/vcss-blue"
    alt="Valid CSS!" />
    Best regards Frankfriend

+ Reply to Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers