Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    New to the CF scene
    Join Date
    Jul 2007
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Having layout move with browser

    I do not know how to have a layout (lets say it is 700px wide) to stay centered no matter how small or big the browser window gets.

    Also, I need to know how to apply a BG image to that same page. Would it be the standard body background HTML tag?

    And lastly, I use DIV tags a lot, if I added the code in to keep the layout centered, will that also affect the DIV tags? If so, how could I fix that issue?

  • #2
    Regular Coder Jutlander's Avatar
    Join Date
    Jun 2007
    Location
    In my own sick little world :P
    Posts
    425
    Thanks
    1
    Thanked 12 Times in 12 Posts
    You need to post a link your site or the code you have so far.

    You can assign a background to the background of the page like this:

    Code:
    body {
    background: url(bg.gif);
    }
    This is CSS. The bg attribute is not used anymore. If what you rather wanted was a background on the centered div you keep everything in, just switch the body part in the above code out with the name of your div ID.
    .
    .

  • #3
    New to the CF scene
    Join Date
    Jul 2007
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Ok. Anything for my other questions?

    Also, I don't have a specific site that I want to do this with, just an over all idea.
    But this could be applied to www.antiBURN.com (the antiBURN logo is the link)

    That site can be a reference for what I am trying to do. (Except that it has no Div codes)

  • #4
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    ||||If you are getting paid to do a job, don't ask for help on it!||||

  • #5
    New to the CF scene
    Join Date
    Jul 2007
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thanks!! This definitely helps.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •