+ Reply to Thread
Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: CSS Help needed

  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

    CSS Help needed

    No clue what I did. Haha. I coded this as static height (for the posts) and when I changed it to a dynamic height, it's all messed up.

    Spent 2+ hours trying to fix it, but got nowhere. What really creeps me out is that it works better in Internet Explorer than it does in FF.

    Files will be uploaded when I get home. Just don't really have the files on this PC which is connected to the internet atm.

    Thought i'd post this before I forgot.

    A working version (kinda, still has static height) can be seen at http://24.61.155.176/Christmas/ (It's the "posts" thing that isn't working right. Try changing the values of height for .post and .left to auto..
    Edit:
    Updated version online at http://24.61.155.176/Christmas/

    The old index.html and style.css are located at http://24.61.155.176/Christmas/index.html.bak and http://24.61.155.176/Christmas/style.css.bak

    Any help is appreciated. Should look like this: http://neilhanlon.com/Designs/VizoXi...%20altered.png (essentially, basic design)
    Last edited by leafypiggy; 12-06-2009 at 01:33 PM. Reason: Automerged Doublepost
    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
    xav0989's Avatar
    xav0989 is offline Community Public Relation xav0989 is just really nice
    Join Date
    Jul 2008
    Location
    ifk
    Posts
    4,438

    Re: CSS Help needed

    Just add
    HTML Code:
    <div style="clear: both"> </div>
    right before the post closing div. You should always have a clearing div when using floats.
    Xavier L | Community Public Relations Manager (Free Hosting Support)
    █ Yes, my position is too cool to even exist!
    How am I helping? Rate this post by clicking the icon below! (this is even better than "liking" a post)
    Terms of Service | Acceptable Use Policy | x10Hosting Wiki

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

    Re: CSS Help needed

    Sweet! Thanks. Now I just gotta make the left part of the post expand to fill the rest of the post after it overflows the normal thing. :P
    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

  4. #4
    xav0989's Avatar
    xav0989 is offline Community Public Relation xav0989 is just really nice
    Join Date
    Jul 2008
    Location
    ifk
    Posts
    4,438

    Re: CSS Help needed

    Quote Originally Posted by leafypiggy View Post
    Sweet! Thanks. Now I just gotta make the left part of the post expand to fill the rest of the post after it overflows the normal thing. :P
    You lost me pal!
    Xavier L | Community Public Relations Manager (Free Hosting Support)
    █ Yes, my position is too cool to even exist!
    How am I helping? Rate this post by clicking the icon below! (this is even better than "liking" a post)
    Terms of Service | Acceptable Use Policy | x10Hosting Wiki

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

    Re: CSS Help needed

    Quote Originally Posted by xav0989 View Post
    You should always have a clearing div when using floats.
    For reference, other ways of clearing floats.

    Quote Originally Posted by leafypiggy View Post
    Appending the ".bak" extension causes browsers to download the files rather than display them. You might want to put the ".bak" before the other file extension.

    Quote Originally Posted by leafypiggy View Post
    Sweet! Thanks. Now I just gotta make the left part of the post expand to fill the rest of the post after it overflows the normal thing. :P
    Are you referring to a two-column layout? That is, vertical expansion so both columns are the same height and nothing is cut off. If so, "Multi-Column Layouts Climb Out of the Box" describes one way and links to many others.
    Last edited by misson; 12-06-2009 at 05:50 PM.
    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.

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

    Re: CSS Help needed

    Yeah, it should do it now... but for some reason it's not.

    I've done it before multiple different ways, but none of them seem to work. The Left (candycane pattern) won't expand to fill up the whole post.
    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

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

    Re: CSS Help needed

    Quote Originally Posted by leafypiggy View Post
    it should do it now...
    I'm not seeing why. #posts .post .left is floated, and the parent doesn't use faux-columns.
    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.

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

    Re: CSS Help needed

    #posts and .post aren't floated, and if they are, they should be.

    .left is floated for styling purposes. It wouldn't affect the layout expanding.
    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

  9. #9
    coolv1994 is offline x10 Elder coolv1994 is an unknown quantity at this point
    Join Date
    Nov 2007
    Posts
    506

    Re: CSS Help needed

    Well if your website is W3C complient with HTML 4.0 or XTML 1.0+ then you can not use a dynamic height for your page. I've tried it before and I would reccommend using HTML 3.0, that is my suggestion.

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

    Re: CSS Help needed

    Quote Originally Posted by leafypiggy View Post
    #posts and .post aren't floated, and if they are, they should be.
    #posts .post .left refers to the one element that matches the selector, as opposed to #posts, .post, .left, which would match multiple. Sorry for taking the short-'n'-unclear route. Perhaps I'll user #posts>.post>.left to emphasize that I'm using a selector.

    Quote Originally Posted by leafypiggy View Post
    .left is floated for styling purposes. It wouldn't affect the layout expanding.
    Ah, but it does. Not clearing the floating descendents of #posts>.post is what keeps a .post from expanding. Floating #posts>.post>.left keeps you from using the "bottom" attribute, which is the easiest way of stretching the height of an element.

    In any case, I'm not seeing anything in the style sheet that will stretch out #posts>.post>.left or its descendents to equalize the height with .post>.post-content.
    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.

+ Reply to Thread
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
x10hosting free hosting for the masses
dedicated servers