Aligning text in HTML
Results 1 to 8 of 8

Thread: Aligning text in HTML

  1. #1
    Banned
    Join Date
    Jun 2004
    Posts
    154

    Aligning text in HTML

    I am creating a webpage in HTML, and the way i have my background i need to align all of my text about 3 inches to the right. I dont know how i can move entire texts over. Any help?

  2. #2

  3. #3
    AO French Antique News Whore
    Join Date
    Aug 2001
    Posts
    2,126
    This link is good also: http://werbach.com/barebones/barebones.html

    It'll be more useful for real beginners that the W3 link.
    -Simon \"SDK\"

  4. #4
    Hi mom!
    Join Date
    Aug 2001
    Posts
    1,103
    Using tables for text-alignment is getting a bit outdated. Preferred way to format HTML nowadays is using CSS.

    There are a lot of usages for CSS - it's quite powerful - but I'll give you just a small example of how to keep all content of a page (or, the 'body' in HTML) away from the edge of the page.

    Code:
    <html>
    <body style="margin: 20px;">
    <p>This text is aligned at least 20 pixels
    from the top, left, right and bottom from
    the edge of the body.</p>
    </body>
    </html>
    You'll find loads of information on CSS at the W3C Cascading Style Sheets Homepage at http://w3c.org/Style/CSS/
    I wish to express my gratitude to the people of Italy. Thank you for inventing pizza.

  5. #5
    Banned
    Join Date
    Jun 2004
    Posts
    154
    Yeah i ended up creating a table, thank you guys

    However I ran into another problem. When I hyperlink an image, it puts a blue border around the image, how do i get rid of it?

  6. #6
    Banned
    Join Date
    Jun 2004
    Posts
    154
    ah nvm i used the border=0 attribute. thanks

  7. #7
    Banned
    Join Date
    Jun 2004
    Posts
    154
    Ok last thing. I am trying to get a professional look and I need the company name at the top. the name is Medway Tool or Medway Tool Corp. I am not too familar with Photoshop, i only know the very basics if that. Anyone give me some advise as to creating a professional looking banner? And if possible a company logo. The company is a tool and dye. Ill be hosting the website for anyone to look at and give some critisizm but for now im still lookin for a free site to post without a banner at the top

  8. #8
    Banned
    Join Date
    Jun 2004
    Posts
    154
    http://www.geocities.com/otiz421/index.html
    its not done at all but those are the color schemes

Posting Permissions

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