Forums

A border around the post area in home and single pages (3 posts)

  1. Ashwin Raghavan
    Member
    Posted 10 months ago #

    Hi,

    I am trying to build a full border (not individual borders for each post) across the list of posts and really unsuccessful for some unknown reason. I tried adding styles to div with id as content and yet all the posts do not seem to fit within them and I see the border sitting right at the start without any height. Only if I manually hide the height, the borders are expanding and accommodating the posts which is really not acceptable. Even if I add as a minimum height, it makes me necessary for holding the content equivalent to the height.

    Am I doing something wrong here... I really require some suggestions on how to go about this problem. Thanks for all the help and a great forum!!!

  2. jwind
    Member
    Posted 10 months ago #

    Sounds like maybe content within your border div is floated and the container div is NOT?

  3. Ashwin Raghavan
    Member
    Posted 10 months ago #

    Eureka!!! You are so very true. I verified the styles of container div which is enclosing the content div and as you said, the container div is having a float element whereas the content div did not. That was a great idea and I didn't have clue that float values can cause such drastic changes to the HTML. The border is able to include all the posts after I added the same float values as that of the parent div. Thanks a ton!!!

Reply

You must log in to post.

About this Topic

Tags