WordPress.org

Ready to get started?Download WordPress

Forums

Include Menu in Rap? (6 posts)

  1. choquito
    Member
    Posted 9 years ago #

    Hi,
    Relative newbie here. I've been messing around with the various methods to include static pages on a WP built site. I've opted to copy my index.php and strip out content I don't need.
    My problem is that I would like to make sure any new static page will be at least the height of the menu. You can see what I mean be going here, http://www.choquito.com/about.php
    Is there a good way to ensure the rap extends around the menu? or should I go about this another way.
    Thanks in advance for any help on this. I did search but was not coming up with anything specific to my question.

  2. cybo
    Member
    Posted 9 years ago #

    add this

    <br style="clear:both" />

    to the bottom of the 'short' column.
    see my article http://www.cybo.co.uk/blog.php?p=18 for a fuller explanation.

  3. choquito
    Member
    Posted 9 years ago #

    Cybo, thanks for the fast reply. I gave your suggestion a try and it didn't seem to do the trick. If I understood you correctly, I just put that bit of code where the content div is in my test about.php page. But the menu still bleeds over the rap border.
    I will keep looking and see if maybe I didn't make proper sense of your suggestion.

  4. cybo
    Member
    Posted 9 years ago #

    sorry, thought you were using float to position your menu, its 'cos its absolute.
    unless you use abs for everythin else its never going to work.
    I'd switch to float. ;)

  5. choquito
    Member
    Posted 9 years ago #

    Thanks everyone for all the great suggestions and help. I think Root's link may be the direction for me. I will experiment.
    As I am a newbie in the CSS world, just wondering if putting the menu within the rap would possibly work? or is that just not the way to go at all? I'm just curious.
    I will now proceed to investigate the merits of float and see if I can get my head around some more concepts.
    thanks again

  6. Root
    Member
    Posted 9 years ago #

    Your menu is *in* the rap already. But an absolute positioned element, can not expand its parent container by using height: auto. That is what absolute means. It is therefore of limited use to bloggers, in a wide range of designs.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.