I'm Back! Need help with a website header

by Yacko
25 replies
  • WEB DESIGN
  • |
How can I get my header to display from left to right so it can display on all resolutions and browsers.(so there is no sidescroller bars) (without making it all blurred)

My brother told me there is a code....

I kinda want my header to be like.

wholsaletrafficsystem[dot]com - I hope I'm allowed to post links as an example
#back #header #website
  • Profile picture of the author Aronya
    There isn't a specific code that does what you want. What you need to do is design your site with % widths, not specific pixel sizes. Your header image will, of course, be a set dimension (the header for the site you referenced is 450px), and the outer dimensions of the page will be dynamic.
    {{ DiscussionBoard.errors[688106].message }}
  • Profile picture of the author Barbara Wilson
    The blue gradient is a a very narrow image (2x150px) set to repeat across the top of the page so it will fill the entire width of the browser window. If you make your browser narrower than 900px though you'll see that the left/right scroll bar appears because the content table is set at 900px.
    Signature
    {{ DiscussionBoard.errors[689341].message }}
    • Profile picture of the author Yacko
      The blue gradient is a a very narrow image (2x150px) set to repeat across the top of the page so it will fill the entire width of the browser window. If you make your browser narrower than 900px though you'll see that the left/right scroll bar appears because the content table is set at 900px.
      O_O
      I'm sorry for my complete noobishness but could you please tell me how to do that?

      I'm using
      Photoshop
      And Xsitepro

      More specifically, how can I "set to repeat my header across the top of the page so it will fit the entire width of the window"

      P.S

      Forgot to say thanks! - Just excuse my noobishness
      {{ DiscussionBoard.errors[692899].message }}
  • Profile picture of the author Barbara Wilson
    Put this in the head of your page:

    <style type="text/css">
    body {
    background-image: url(images/bkg.gif);
    background-repeat: repeat-x;
    }
    </style>

    where bkg.gif is the image of your gradient In the site you referenced this image is 2px wide and 150px long but the length is going to depend on how long your gradient is.
    Signature
    {{ DiscussionBoard.errors[693162].message }}
  • Profile picture of the author Yacko
    I put that code in there and nothing happened

    +

    I dont understand
    {{ DiscussionBoard.errors[693194].message }}
    • Profile picture of the author mr_banks
      I will help you with your problem. I just need you to PM me if you want my help I will take a look at what you have and we'll get everything working. The advice that you where given, while it would work, is not the best way to do it.

      I do not want any money just let me know if you want my help?
      {{ DiscussionBoard.errors[693291].message }}
  • Profile picture of the author Barbara Wilson
    Yacko - Did you create your bkg.gif image and put it in your images folder?

    mr_banks - Well, I wouldn't do it this way either - I'd use css. But this seemed the easiest way to get it working for Yacko. How would you do it? I'm always eager to learn a better way to do something.
    Signature
    {{ DiscussionBoard.errors[693356].message }}
  • Profile picture of the author Yacko
    Sadly, I can't P.M
    {{ DiscussionBoard.errors[699838].message }}
  • Profile picture of the author Yacko
    Here is my code if that will help you guys:

    </head>
    <body>

    <table class="XSP_OUTLINE" align="center" cellpadding="0" cellspacing="0" border="0">
    <tr>
    <td colspan="3" class="XSP_HEADER_PANEL" width="100%"><img border=0 src="/images/coologoprolly.gif" alt=""></td>
    </tr>
    <tr>
    <td class="XSP_LEFT_PANEL_SPC" id="XSP_LEFT_PANEL_SPC">&nbsp;</td>
    <td class="XSP_CENTER_PANEL" rowspan="2"><table class="XSP_CENTER_PANEL" cellpadding="0" cellspacing="0" border="0"><tr>
    <td class="XSP_MAIN_PANEL_HEADER">
    </td>
    </tr>
    {{ DiscussionBoard.errors[699843].message }}
  • Profile picture of the author Yacko
    This is a post from another site which I posted on . Maybe that'll also help you guys

    Anyways, I want my website header to display from right to left without making the browser bigger. (displayable on all resolutions identically).

    I wish I could show you an example but i couldn't

    Here goes:

    -------------------------------------
    Header TIF file goes in here.
    Browser Starts ------------------------------------- Browser ends here

    Blah Blah Blah Blah blah
    ........................................
    .......................................
    ------------------------------------
    FOOTER GOES IN HERE
    -----------------------------------
    < --------------------------------------->
    ^^ I don't want any side scroller bars

    Basically, I just want the header to display from left to right identically on all browsers.

    {{ DiscussionBoard.errors[699851].message }}
  • Profile picture of the author Yacko
    It would be, really really nice if someone could actually HELP me >_<
    {{ DiscussionBoard.errors[703538].message }}
  • Profile picture of the author Aronya
    So what exactly is the problem at this point? What have you done? What changed when you did that?

    If you're expecting your header IMAGE to expand and contract based on screen resolution, you're going to be disappointed.
    {{ DiscussionBoard.errors[704537].message }}
    • Profile picture of the author Yacko
      Originally Posted by Aronya View Post

      So what exactly is the problem at this point? What have you done? What changed when you did that?

      If you're expecting your header IMAGE to expand and contract based on screen resolution, you're going to be disappointed.
      How will I be disappointed with what happens, I've seen what I want on other peoples website.

      I simply want the header to go from LEFT to RIGHT without making side stroller bars. I DONT CARE HOW ITS DONE, I just want it done .
      {{ DiscussionBoard.errors[705266].message }}
  • Profile picture of the author Aronya
    What's your website? wholsaletrafficsystem dot com (as you typed it in your OP) doesn't resolve, so I went to wholesaletrafficsystem dot com/. There are no horizontal scroll bars there at 1024x768. On the other hand, the code there doesn't seem to match what you posted.

    Without better info, it's going to be hard to help.
    {{ DiscussionBoard.errors[705298].message }}
  • Profile picture of the author Yacko
    That's not my website.

    I simply want my header like that! From left to right. If you read my post, maybe you'd realize.

    What info do I need?

    I simply want my header to go from left to right without making side scroller bars. THE CODE IS FOR MY WEBSITE.

    What other info do you want, I've given you my code.

    I need steps to take to get my header like wholesaletrafficsystem.com
    {{ DiscussionBoard.errors[705345].message }}
  • Profile picture of the author Aronya
    Let's see your CSS.

    And I'd suggest throttling back a little on your attitude if you want help from people
    {{ DiscussionBoard.errors[705354].message }}
  • Profile picture of the author Yacko
    I apologize.

    It would be appreciated if I read my post >_<.

    Anyways, I don't have CSS, I just have made a photoshop header...

    Please explain :\....

    My website is...

    www.qwikweightloss.com/pooga/challange.html
    {{ DiscussionBoard.errors[705383].message }}
  • Profile picture of the author Barbara Wilson
    Your header and page is 1280px wide - there's going to be left/right scroll bars for everyone with their resolution set lower than 1280x768.
    Signature
    {{ DiscussionBoard.errors[705464].message }}
  • Profile picture of the author Yacko
    Okay. I know that.

    But at wholesaletrafficsystem.com - They have their header adjust from left to right with no side scrollers. (no matter what the resolution etc.)

    The question is how do I get it like that.

    Is there a code?
    Is there some special trick?
    What are the steps I need to take in order to get my website like that?

    Surely it can't be that hard if everybody is doing it.

    As I've said, if you view wholesaletrafficsystem.com at all resolutions, their header appears identically.

    I'm asking HOW do they do that. I really don't mean to offend but not one person has answered my question properly

    Thanks
    {{ DiscussionBoard.errors[705536].message }}
  • Profile picture of the author Barbara Wilson
    Actually Yacko - I did answer your question 3 days ago. Also, I've read your thread at the other forum and several people over there gave you various methods for handling this.

    You do have a css style sheet. It's named xsp_style.css. In that file is a rule for BODY. Make that definition read like this:

    BODY {
    FONT-SIZE: 8pt;
    MARGIN: 0px;
    COLOR: #000000;
    FONT-FAMILY: Tahoma, Sans-Serif;
    BACKGROUND-COLOR: #ffffff;
    background-image: url(bkg.gif);
    background-repeat: repeat-x;
    background-position: top;
    }

    This is adding the 3 lines for the background - background-image, background-repeat and background-position.

    Upload your edited css file.

    Make a new image from a blank part of your header that's 2 or 3 px wide and the full height of 150 px. You'll have a very thin image that's black with the small border of gold at the bottom. Name this image bkg.gif and upload it into your images folder.

    This is the way the site you referenced in your OP was set up.

    You're not actually stretching the header - this adds a background that matches your header background and makes it appear that the header is filling the entire browser window - left to right.
    Signature
    {{ DiscussionBoard.errors[705843].message }}
  • Profile picture of the author Aronya
    The header image at WTS is only 450px wide. The rest of what you see is background. So, as long as you view that site at something above 450px, you won't get scroll bars. The browser just fills in the background as needed.

    Most people use resolutions of 1024px wide or less. Seems like you're designing at 1280, so YOU don't get scroll bars, but most of the rest of the world will.
    {{ DiscussionBoard.errors[705879].message }}
  • Profile picture of the author Yacko
    Finally, I think we've hit bullseye.

    I've figured I actually do have a CS file thanks to Barbara. :].

    But the problem isn't solved yet...

    Where do I specify those details... >_<
    BODY{MARGIN-LEFT: 0px;MARGIN-RIGHT: 0px;MARGIN-TOP: 0px;MARGIN-BOTTOM: 0px;BACKGROUND-COLOR: #FFFFFF;FONT-SIZE: 8pt; COLOR: #000000; FONT-FAMILY: Tahoma, Sans-Serif;}

    TABLE.XSP_OUTLINE{HEIGHT: 100%;WIDTH: 540px;}

    TD.XSP_HEADER_PANEL{BACKGROUND-COLOR: #FFFFFF; WIDTH: 540px;TEXT-ALIGN: left;}

    TD.XSP_HEADER_PANEL TABLE{}

    TD.XSP_LEFT_PANEL_SPC{VERTICAL-ALIGN: top;TEXT-ALIGN: left;HEIGHT: 100%; WIDTH: 270px; BACKGROUND-COLOR: #FFFFFF;PADDING: 0px;}

    TD.XSP_LEFT_PANEL{VERTICAL-ALIGN: top;TEXT-ALIGN: left;HEIGHT: 1px; WIDTH: 270px; BACKGROUND-COLOR: #FFFFFF;PADDING: 0px;}

    DIV.XSP_LEFT_PANEL{VERTICAL-ALIGN: top;TEXT-ALIGN: left;WIDTH: 100%; FONT-SIZE: 10pt; COLOR: #000000; FONT-FAMILY: Verdana, Sans-Serif; PADDING: 0px;}

    DIV.XSP_LEFT_PANEL table{FONT-SIZE: 10pt; COLOR: #000000; FONT-FAMILY: Verdana, Sans-Serif;}

    TD.XSP_CENTER_PANEL{HEIGHT: 100%; WIDTH: -1px; BACKGROUND-COLOR: #FFFFFF;}

    TD.XSP_CENTER_PANEL_NR{HEIGHT: 100%; WIDTH: 269px; BACKGROUND-COLOR: #FFFFFF;}

    TABLE.XSP_CENTER_PANEL{HEIGHT: 100%;WIDTH: 100%;}



    TD.XSP_MAIN_PANEL{VERTICAL-ALIGN: top;TEXT-ALIGN: left;HEIGHT: 100%; WIDTH: 100%;FONT-SIZE: 8pt; COLOR: #000000; FONT-FAMILY: Tahoma, Sans-Serif;PADDING: -1px;}

    TD.XSP_MAIN_PANEL TABLE{FONT-SIZE: 8pt; COLOR: #000000; FONT-FAMILY: Tahoma, Sans-Serif;}

    TD.XSP_MAIN_PANEL_FOOTER{VERTICAL-ALIGN: top;TEXT-ALIGN: left;HEIGHT: 20px; BACKGROUND-COLOR: #FFFFFF; WIDTH: 100%; FONT-SIZE: 8pt; COLOR: #000000; FONT-FAMILY: Verdana, Sans-Serif;PADDING: 5px 5px;}

    TD.XSP_MAIN_PANEL_FOOTER TABLE{FONT-SIZE: 8pt; COLOR: #000000; FONT-FAMILY: Verdana, Sans-Serif;}

    TD.XSP_MAIN_PANEL_HEADER{VERTICAL-ALIGN: top;TEXT-ALIGN: left;HEIGHT: 30px; BACKGROUND-COLOR: #FFFFFF; WIDTH: 100%; FONT-SIZE: 8pt; COLOR: #000000; FONT-FAMILY: Verdana, Sans-Serif;PADDING: 5px 5px;}

    TD.XSP_MAIN_PANEL_HEADER TABLE{FONT-SIZE: 8pt; COLOR: #000000; FONT-FAMILY: Verdana, Sans-Serif;}

    TD.XSP_INFO_BAR{VERTICAL-ALIGN: top;HEIGHT: 30px; BACKGROUND-COLOR: #FFFFFF;FONT-SIZE: 8pt; COLOR: #000000; FONT-FAMILY: Verdana, Sans-Serif;PADDING: 5px;}

    TD.XSP_INFO_BAR TABLE{FONT-SIZE: 8pt; COLOR: #000000; FONT-FAMILY: Verdana, Sans-Serif;}

    TD.XSP_RIGHT_PANEL_SPC{VERTICAL-ALIGN: top;TEXT-ALIGN: left;HEIGHT: 100%; WIDTH: 270px; BACKGROUND-COLOR: #FFFFFF;PADDING: 0px;}

    TD.XSP_RIGHT_PANEL{VERTICAL-ALIGN: top;TEXT-ALIGN: left;HEIGHT: 1px; WIDTH: 270px; BACKGROUND-COLOR: #FFFFFF;PADDING: 0px;}

    DIV.XSP_RIGHT_PANEL{VERTICAL-ALIGN: top;TEXT-ALIGN: left;WIDTH: 100%; FONT-SIZE: 10pt; COLOR: #000000; FONT-FAMILY: Verdana, Sans-Serif; PADDING: 0px;}

    DIV.XSP_RIGHT_PANEL TABLE{FONT-SIZE: 10pt; COLOR: #000000; FONT-FAMILY: Verdana, Sans-Serif;}

    TD.XSP_FOOTER_PANEL{VERTICAL-ALIGN: top;TEXT-ALIGN: left;HEIGHT: 100px; WIDTH: 540px; FONT-SIZE: 8pt; COLOR: #000000; FONT-FAMILY: Verdana, Sans-Serif; PADDING: 5px;BACKGROUND-COLOR: #F5F5F5;}



    TD.XSP_FOOTER_PANEL TABLE{FONT-SIZE: 8pt; COLOR: #000000; FONT-FAMILY: Verdana, Sans-Serif; }



    DIV.BREADCRUMB { font-size: 8pt; color: #000000; font-family: Verdana, Sans-Serif; font-weight: normal; text-decoration: none; }

    A.BREADCRUMB { font-size: 8pt; color: #000000; font-family: Verdana, Sans-Serif; font-weight: normal; text-decoration: underline; }

    A.BREADCRUMB:visited { color:#000000; }

    A.BREADCRUMB:hover { color:#000000 }


    {{ DiscussionBoard.errors[706134].message }}
    • Profile picture of the author Aronya
      Originally Posted by Yacko View Post

      TABLE.XSP_OUTLINE{HEIGHT: 100%;WIDTH: 540px;}
      I would start with this. Your header graphic is almost twice the size designated by the CSS file. Crop your header to fit 540px wide & see what happens.
      {{ DiscussionBoard.errors[706161].message }}
      • Profile picture of the author Yacko
        Originally Posted by Aronya View Post

        I would start with this. Your header graphic is almost twice the size designated by the CSS file. Crop your header to fit 540px wide & see what happens.
        Yeah, the header just went like smaller :O
        {{ DiscussionBoard.errors[706479].message }}
    • Profile picture of the author Barbara Wilson
      Originally Posted by Yacko View Post

      Finally, I think we've hit bullseye.

      I've figured I actually do have a CS file thanks to Barbara. :].

      But the problem isn't solved yet...

      Where do I specify those details... >_<

      Here -
      BODY{MARGIN-LEFT: 0px;MARGIN-RIGHT: 0px;MARGIN-TOP: 0px;MARGIN-BOTTOM: 0px;BACKGROUND-COLOR: #FFFFFF;FONT-SIZE: 8pt; COLOR: #000000; FONT-FAMILY: Tahoma, Sans-Serif;}
      Signature
      {{ DiscussionBoard.errors[706749].message }}

Trending Topics