Container Help (HTML/CSS)

Discussion in 'Web Programming' started by ~XS, Nov 18, 2008.

Container Help (HTML/CSS)
  1. Unread #1 - Nov 18, 2008 at 3:44 PM
  2. ~XS
    Joined:
    Sep 16, 2008
    Posts:
    406
    Referrals:
    0
    Sythe Gold:
    0

    ~XS Forum Addict
    Banned

    Container Help (HTML/CSS)

    UPDATE:

    This is what I am trying to accomplish. The only thing that is going to be a problem for me is the navbar. What I want for the navbar is for when someone rollsover one of the buttons, the subpage links (Signatures, avatars, etc in example) appear, but differ depending on the button you are rolling over. I can make the buttons change color on rollover, but I cant do the bar that appears underneath it. If anyone knows how to do it please contact me. Thank you.

    [​IMG]


    /UPDATE
    Well I tried describing it, but I couldn't. So I drew a picture.

    [​IMG]

    Basically the area titled 1 is a picture I have that is being repeated infinity along the X axis, and the area titled 2 is my navbar. Both are in CSS, but the navbar has some html to it for obvious reasons. What I want to do is move the navbar (which is also being repeated infinity along the X axis, it is just constrained by a container) to become a sort of "layer" that overlaps the header, but does not hide the header. This way, the navbar is on top of the header image. Is there a way to do this? If not, can you explain an alternative so I can get the same effect? Another option that I could do is create a whole new container on top of the previous one. I just don't know how to do that either.

    The yellow dotted lines are the container parameters. The containers are placed by an external CSS file, as is most of the page. I am using Dreamweaver CS3
     
  3. Unread #2 - Nov 18, 2008 at 8:26 PM
  4. SuF
    Joined:
    Jan 21, 2007
    Posts:
    14,212
    Referrals:
    28
    Sythe Gold:
    1,234
    Discord Unique ID:
    203283096668340224
    <3 n4n0 Two Factor Authentication User Community Participant Spam Forum Participant Sythe's 10th Anniversary

    SuF Legend
    Pirate Retired Global Moderator

    Container Help (HTML/CSS)

    So you want to make the header slightly bigger and have the navbar have text that shows up over the header image with overlaps the navbar?
     
  5. Unread #3 - Nov 18, 2008 at 9:11 PM
  6. ~XS
    Joined:
    Sep 16, 2008
    Posts:
    406
    Referrals:
    0
    Sythe Gold:
    0

    ~XS Forum Addict
    Banned

    Container Help (HTML/CSS)

    ill just show you the actual layout. I wasnt going to do it but whatever.

    this is what I currently have

    [​IMG]

    This is what I want. At least to some degree. I might end up changing the navbar to individual buttons. But that isnt the point. Basically just a container on top of another container which contains a repeated image.

    [​IMG]

    something along those lines
     
  7. Unread #4 - Nov 19, 2008 at 12:39 AM
  8. TDD
    Joined:
    Nov 20, 2005
    Posts:
    3,191
    Referrals:
    2
    Sythe Gold:
    0

    TDD Web Design Expert
    Do Not Trade

    Container Help (HTML/CSS)

    Show a better mockup of what you want, perhaps the desired outcome in photoshop, and i'll give you the xHTML/CSS
     
  9. Unread #5 - Nov 20, 2008 at 3:01 PM
  10. ~XS
    Joined:
    Sep 16, 2008
    Posts:
    406
    Referrals:
    0
    Sythe Gold:
    0

    ~XS Forum Addict
    Banned

    Container Help (HTML/CSS)

    Edit: Thanks TDD. I have posted a concept. Hopefully you haven't gotten started on the last one I posted. It doesn't matter as its just some graphic tweaks. If you need the .psd, I updated it.

    [​IMG]

    Thanks a ton by the way.

    Download .psd (Updated)
     
  11. Unread #6 - Nov 21, 2008 at 3:29 AM
  12. TDD
    Joined:
    Nov 20, 2005
    Posts:
    3,191
    Referrals:
    2
    Sythe Gold:
    0

    TDD Web Design Expert
    Do Not Trade

    Container Help (HTML/CSS)

    Basically this is what you need as the BASIC xHTML - i cbf to code up your dropdown/onhover sub-menu... have fun with that... did this off the top of my head:

    <div class="header">
    <div class="inner top">
    <a href="/"><img src="images/logo.png" alt="Logo for XSafire" /></a>
    <ul>
    <li><a href="/">Home</a></li>
    <li><a href="/">Gallery</a></li>
    <li><a href="/">Games</a></li>
    <li><a href="/">Downloads</a></li>
    </ul>
    </div><!-- end of inner top -->

    <div class="inner bottom">
    <!-- here's where you'd put your code for the google search -->
    </div><!-- end of inner bottom -->
    </div><!-- end of header -->

    <div class="content">

    </div><!-- end of content -->


    and for your css:
    body {
    background-color: #141414;
    }

    div.header {
    width: 100%;
    position: relative;
    background-image: url(images/blue-header-bg.gif);
    background-repeat: repeat-x;
    }

    div.header inner top {
    position: relative;
    left: 50%;
    }

    div.header inner top ul {
    position: relative;
    margin-left: 5px;
    }

    div.header inner top ul li {
    list-style-type: none;
    display: inline;
    width: 100px;
    height: 8px;
    background-image: url(images/list-background.gif);
    background-repeat: no-repeat;
    margin-right: 2px;
    }

    div.header inner bottom {
    position: relative;
    width: 100%;
    height: 90px;
    text-align: right;
    background-image: url(header-background-gray.jpg);
    background-repeat: repeat-x;
    }

    div.content {
    position: relative;
    left: 50%;
    margin-left: -388px;
    width: 775px;
    margin-top: 40px;
    background-color: #fff;
    background-image: url(images/content-top-bg.gif);
    background-position: top;
    background-repeat: no-repeat;
    }

    Take note, this is just my assumption of what it would be, I coded this straight into here, no testing no nothing, and is incomplete, it's up to you to fill in the gaps - i'm not going to do it all for you, just steer you in the right direction.
     
  13. Unread #7 - Nov 21, 2008 at 3:14 PM
  14. ~XS
    Joined:
    Sep 16, 2008
    Posts:
    406
    Referrals:
    0
    Sythe Gold:
    0

    ~XS Forum Addict
    Banned

    Container Help (HTML/CSS)

    I love you.

    Thanks.
     
< PHP Coding HELP | Runezone >

Users viewing this thread
1 guest


 
 
Adblock breaks this site