Website Design Help...

Discussion in 'Gaming' started by White B O I, Oct 19, 2008.

  1. White B O I

    White B O I Well-Known Member

    Age:
    36
    Posts:
    813
    Likes Received:
    0
    Joined:
    Apr 11, 2006
    Location:
    Table Town, Arizona
    So I have realized, I have no clue how to make a website anymore,
    I know basics, but I have forgotten lots apparently here is my problem,

    I have made my own design,
    and implemented it,
    and I like it,

    but the alignments are all messed up

    I like how this came out
    [​IMG]

    here is my problem though,
    I want it to be centered, fixed, and have NO repeat

    So I added a bit of CSS to get this

    Code:
    <style type="text/css">
    body
    {
        background-image: url("images/layout.png");
        background-position:center;
        background-repeat:no-repeat;
        background-attachment:fixed;
    }
    </style>
    you think it'd work,
    of course not right?

    when I add the css to the page I get this
    [​IMG]

    the music player and text become unaligned,

    why!
    well I know why.. but anyone got a way around it to make my life simple...

    (and yes I know that in the two pictures one is on my home page and one says contacts)
     
  2. Magicgfx

    Magicgfx Senior Member

    Posts:
    313
    Likes Received:
    0
    Joined:
    Mar 3, 2007
    I think for the repeating part is should be:
    Code:
    background:url(images/layout.png) no-repeat;
    and in doing that, get rid of
    background-repeat:no-repeat;
    as for the rest of your items, I've never used background-position or attatchment.
     
  3. White B O I

    White B O I Well-Known Member

    Age:
    36
    Posts:
    813
    Likes Received:
    0
    Joined:
    Apr 11, 2006
    Location:
    Table Town, Arizona
    my css works fine,
    just positioning the text and music player is my problem
     
  4. xlink

    xlink GR's Tech Enthusiast

    Posts:
    8,054
    Likes Received:
    3
    Joined:
    Nov 19, 2004
    <style type="text/css">
    body
    {
    background-image: url("images/layout.png");
    background-position:center;
    background-repeat:no-repeat;
    background-attachment:fixed;
    }
    </style>
    <div align="center">content here</div>
     
  5. White B O I

    White B O I Well-Known Member

    Age:
    36
    Posts:
    813
    Likes Received:
    0
    Joined:
    Apr 11, 2006
    Location:
    Table Town, Arizona
    That's getting closer to what I want :D

    now how do i align my freaking music player? lol
     
  6. xlink

    xlink GR's Tech Enthusiast

    Posts:
    8,054
    Likes Received:
    3
    Joined:
    Nov 19, 2004
    set it in a Div, then

    style="left: 50%; margin-left:-XXX"
     
  7. White B O I

    White B O I Well-Known Member

    Age:
    36
    Posts:
    813
    Likes Received:
    0
    Joined:
    Apr 11, 2006
    Location:
    Table Town, Arizona
    hehe that's what i was trying to member!

    haha thanks, if it works I'll rep ya :D
     

Share This Page