The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS I’m not 100% sure what I’m looking for, but

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #32213

    I have a site that I’m trying to do, and I’m attempting to use DIV tags to display the buttons and whatnot – I’m using the following code to create a background that doesn’t tile, and is perfectly centered (I got it off this website, thankfully)

    I want to put a DIV tag (or even a table) in the dead center of the page, as it's dynamically changing based on browser size(full screen, half screen, whatnot). If anyone could help me out as to what I should do, or even point me to an article (preferably on this site, as the quality of the tutorials is pretty good here), I would be really grateful.


    If I understand correctly, you want to center your content and have a fixed background.

    This is what I’d do for that

    * { margin: 0 auto; padding: 0; } /* Center the content */

    /* Don't assign a div just for the background, it's not "ethical" if I may say so.
    Apply it straight to the body. */

    body {
    background: url(../../images/bg.jpg) top fixed;
    background-color: #5d6778;

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘CSS’ is closed to new topics and replies.