Loading...
  1. Dismiss Notice
  2. Dismiss Notice
  3. Dismiss Notice
  4. Dismiss Notice
  5. Dismiss Notice
  6. Dismiss Notice
  7. Dismiss Notice
  8. If this is your first visit, you may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

LF CSS'er

Discussion in 'General Discussion' started by ~Vendetta, Nov 21, 2010.

Thread Status:
Not open for further replies.
  1. ~Vendetta

    ~Vendetta Getting there

    Joined:
    Sep 20, 2010
    Messages:
    59
    Likes Received:
    2
    Trophy Points:
    0
    Hey guys,

    I got a quick question, been startin to use dreamweaver now, and I know that the code is ''align: center'' to center your whole page. But I've been trying to insert this on my body and background, but it just aint working! It keeps starting at the left.

    I have a background image, and selected a background color. And I have a big part of my body done. (I do most of the work in photoshop and add some links later on ;p)

    Heres my code so far:

    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Untitled Document</title>
    <style type="text/css">
    body 
    
    {
    
    	background-color: #333;
    	background-image: url(Logo.png);
    	background-repeat: no-repeat;
    	text-align: center;
    	align: center
    }
    </style>
    </head>
    
    <body bgcolor="#FFFFFF"><table width="719" height="628" border="0">
      <tr>
        <td width="751"> <img src="Body.png" alt="Body" width="713" height="931" hspace="63" vspace="250" align="middle" /></td>
      </tr>
    </table>
    </body>
    </html>
    
    Anyone can help me getting my webpage all centerd? :/

    Thanks in advance,

    ~V
     
  2. cutetanks

    cutetanks Death's Secretary ♥ Forum Legend

    Joined:
    May 22, 2010
    Messages:
    1,479
    Likes Received:
    494
    Trophy Points:
    333
    Location:
    'Murica
    <CENTER> </CENTER> lol.
     
  3. ~Vendetta

    ~Vendetta Getting there

    Joined:
    Sep 20, 2010
    Messages:
    59
    Likes Received:
    2
    Trophy Points:
    0
    Dude I tried it before but it aint working either. TRIED TO PUT THAT DANG CODE EVERYWHERE! D:< So tell me where to put it (Sounds dirty doesn't it)
     
  4. cutetanks

    cutetanks Death's Secretary ♥ Forum Legend

    Joined:
    May 22, 2010
    Messages:
    1,479
    Likes Received:
    494
    Trophy Points:
    333
    Location:
    'Murica
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Untitled Document</title>
    <style type="text/css">
    body

    {

    background-color: #333;
    background-image: url(Logo.png);
    background-repeat: no-repeat;
    text-align: center;
    align: center
    }
    </style>
    </head>
    <CENTER>

    <body bgcolor="#FFFFFF"><table width="719" height="628" border="0">
    <tr>
    <td width="751"> <img src="Body.png" alt="Body" width="713" height="931" hspace="63" vspace="250" align="middle" /></td>
    </tr>
    </table>
    </CENTER>
    </body>
    </html>

    there ya go

    i could help ya but i dont have DW so i do all my editing in notepad =v..
     
  5. ~Vendetta

    ~Vendetta Getting there

    Joined:
    Sep 20, 2010
    Messages:
    59
    Likes Received:
    2
    Trophy Points:
    0
    sorry for reacting so late braw but I'll check it out once I get home okay? p:
     
  6. tyman

    tyman Well-Known Member

    Joined:
    Jun 3, 2010
    Messages:
    1,645
    Likes Received:
    213
    Trophy Points:
    283
    Location:
    OC MD
    just checked it for u, its centered.
     
  7. cutetanks

    cutetanks Death's Secretary ♥ Forum Legend

    Joined:
    May 22, 2010
    Messages:
    1,479
    Likes Received:
    494
    Trophy Points:
    333
    Location:
    'Murica
    pfft >_> checking for html errors.. cmon.. this is like x_X the abc's of anything to do with coding D:
     
  8. tyman

    tyman Well-Known Member

    Joined:
    Jun 3, 2010
    Messages:
    1,645
    Likes Received:
    213
    Trophy Points:
    283
    Location:
    OC MD
    uh, are u saying the 2 seconds it took to check were wasted gah.
     
  9. cutetanks

    cutetanks Death's Secretary ♥ Forum Legend

    Joined:
    May 22, 2010
    Messages:
    1,479
    Likes Received:
    494
    Trophy Points:
    333
    Location:
    'Murica
    have you ever done action scripting? if not :D you should!!! its hella fun!
     
  10. ~Vendetta

    ~Vendetta Getting there

    Joined:
    Sep 20, 2010
    Messages:
    59
    Likes Received:
    2
    Trophy Points:
    0
    aight thanks guys I just couldnt get it to work. the only problem now is with the background, using:

    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Untitled Document</title>
    <CENTER>
    <style type="text/css">
    body 
    {
    
    	background-color: #333;
    	background-image: url(Logo.png);
    	background-repeat: no-repeat;
    	text-align: center;
    	align: center
    }
    </style>
    </CENTER>
    </head>
    <CENTER>
    
    <body bgcolor="#FFFFFF"><table width="719" height="628" border="0">
      <tr>
        <td width="751"> <img src="Body.png" alt="Body" width="713" height="931" hspace="63" vspace="250" align="middle" /></td>
      </tr>
    </table>
    </CENTER>
    </body>
    </html>
    
    But background stuff aint centering
    D':

    ---------- Post added at 10:15 PM ---------- Previous post was at 10:00 PM ----------

    Bump :')

    D:

    ---------- Post added at 10:23 PM ---------- Previous post was at 10:15 PM ----------

    BUmperdie-bump-bump
     
  11. cutetanks

    cutetanks Death's Secretary ♥ Forum Legend

    Joined:
    May 22, 2010
    Messages:
    1,479
    Likes Received:
    494
    Trophy Points:
    333
    Location:
    'Murica
    but theres nothing else to center D:! its only a picture lol D:!
     
  12. ~Vendetta

    ~Vendetta Getting there

    Joined:
    Sep 20, 2010
    Messages:
    59
    Likes Received:
    2
    Trophy Points:
    0
    no dude, the background image isn't centered
     
  13. Elyios

    Elyios Expert

    Joined:
    May 17, 2010
    Messages:
    789
    Likes Received:
    51
    Trophy Points:
    0
    You used this in the image:
    But afaik you need to use "center" for align (or text-align in css)... "middle" is used for vertical-align (css).

    Instead of using align you also can use css as a property of your image, like:

    style="text-align:center;vertical-align:middle;"
     
  14. cutetanks

    cutetanks Death's Secretary ♥ Forum Legend

    Joined:
    May 22, 2010
    Messages:
    1,479
    Likes Received:
    494
    Trophy Points:
    333
    Location:
    'Murica
    this is alot easier with DW since it does it automaticly for you
     
  15. WhiteRaven

    WhiteRaven Proficient

    Joined:
    Jul 21, 2010
    Messages:
    107
    Likes Received:
    9
    Trophy Points:
    0
    It's " background-position:center top; "

    "top" is additional. I prefer using it.

    (if you are looking for more detailed information on this, visit http://www.w3schools.com/ - great site)
     
    Last edited: Nov 23, 2010
  16. ~Vendetta

    ~Vendetta Getting there

    Joined:
    Sep 20, 2010
    Messages:
    59
    Likes Received:
    2
    Trophy Points:
    0
    Now that's usefull. Thx a lot braw
     
  17. WhiteRaven

    WhiteRaven Proficient

    Joined:
    Jul 21, 2010
    Messages:
    107
    Likes Received:
    9
    Trophy Points:
    0
    You're welcome. :joyful:
     
    1 person likes this.
  18. For§aken

    For§aken Banned

    Joined:
    Jun 21, 2010
    Messages:
    326
    Likes Received:
    147
    Trophy Points:
    0
    Thanks from my other account aswell.
     
Thread Status:
Not open for further replies.

Share This Page