centering a word

Discussion in 'HTML' started by Thad, Feb 4, 2007.

  1. Thad

    Thad Guest

    I've been out of the picture for a while but recently found out that
    centering a word like hello as such...

    <center>hello</center>

    ....has been depricated. Is there another simple way to do this. I've been
    unable to find anything. Anybody have suggestions? Should I just keep
    centering this way?
     
    Thad, Feb 4, 2007
    #1
    1. Advertisements

  2. Thad wrote:
    > I've been out of the picture for a while but recently found out that
    > centering a word like hello as such...
    >
    > <center>hello</center>
    >
    > ...has been depricated. Is there another simple way to do this. I've been
    > unable to find anything. Anybody have suggestions? Should I just keep
    > centering this way?


    http://www.w3.org/TR/CSS21/text.html#propdef-text-align

    --
    Take care,

    Jonathan
    -------------------
    LITTLE WORKS STUDIO
    http://www.LittleWorksStudio.com
     
    Jonathan N. Little, Feb 4, 2007
    #2
    1. Advertisements

  3. Thad

    Thad Guest

    So, it seems I have to write the code using css? I've avoided that
    because I'm confused by css. Is plain html being phased out?

    btw, thanks for the suggestion Jonathan.


    >> I've been out of the picture for a while but recently found out that
    >> centering a word like hello as such...
    >>
    >> <center>hello</center>
    >>
    >> ...has been depricated. Is there another simple way to do this. I've
    >> been unable to find anything. Anybody have suggestions? Should I just
    >> keep centering this way?

    >
    > http://www.w3.org/TR/CSS21/text.html#propdef-text-align
    >
    > --
    > Take care,
    >
    > Jonathan
    > -------------------
    > LITTLE WORKS STUDIO
    > http://www.LittleWorksStudio.com
     
    Thad, Feb 4, 2007
    #3
  4. Gazing into my crystal ball I observed "Thad" <> writing
    in news:bcexh.24682$:

    > So, it seems I have to write the code using css? I've avoided that
    > because I'm confused by css. Is plain html being phased out?
    >
    >


    1. HTML is not code, it is HyperText Markup Language - tags are used to
    markup text - plain and simple.
    2. MTML is not being phased out
    3. CSS is an enhancement - If you go to http://www.csszengarden.com you
    can see the exact same markup changed completely with CSS.

    Once you remove the presentational markup that has been deprecitated in
    favor of CSS, you will see how much quicker and easier it is to get
    things done. Imagine this scenario: 100 pages with <body
    bgcolor="#ffffff" text="#000000">, and you want to swap it - before CSS
    that meant changing all those body elements. Now, a change to one
    stylesheet changes ALL the pages at the same time;
    <body>
    body {background-color:#fff; color:#000}

    --
    Adrienne Boswell at Home
    Arbpen Web Site Design Services
    http://www.cavalcade-of-coding.info
    Please respond to the group so others can share
     
    Adrienne Boswell, Feb 4, 2007
    #4
  5. Adrienne Boswell wrote:

    > 1. HTML is not code, it is HyperText Markup Language - tags are used to
    > markup text - plain and simple.


    Plain, simple, but still code (not program code, but still code).

    > 2. MTML is not being phased out


    "HTML"

    Well, there are efforts to phase it out in favour of XHTML, but they aren't
    working too well, and the W3C seems to have realised that now.

    > 3. CSS is an enhancement - If you go to http://www.csszengarden.com you
    > can see the exact same markup changed completely with CSS.


    I just wish that so many of the designs there didn't change the markup by
    hiding the text and replacing it with images.


    --
    David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
    Home is where the ~/.bashrc is
     
    David Dorward, Feb 4, 2007
    #5
  6. Thad

    dorayme Guest

    In article <eq4fpm$l91$1$>,
    David Dorward <> wrote:

    > > 3. CSS is an enhancement - If you go to http://www.csszengarden.com you
    > > can see the exact same markup changed completely with CSS.

    >
    > I just wish that so many of the designs there didn't change the markup by
    > hiding the text and replacing it with images.


    Certainly looks like cheating in a demo of the power of css...

    --
    dorayme
     
    dorayme, Feb 4, 2007
    #6
  7. Thad

    Thad Guest

    Thanks so much for all the info....I will take that all into consderation
    and look into css.


    "Adrienne Boswell" <> wrote in message
    news:Xns98CCEF40C4BB5arbpenyahoocom@69.28.186.121...
    > Gazing into my crystal ball I observed "Thad" <> writing
    > in news:bcexh.24682$:
    >
    >> So, it seems I have to write the code using css? I've avoided that
    >> because I'm confused by css. Is plain html being phased out?
    >>
    >>

    >
    > 1. HTML is not code, it is HyperText Markup Language - tags are used to
    > markup text - plain and simple.
    > 2. MTML is not being phased out
    > 3. CSS is an enhancement - If you go to http://www.csszengarden.com you
    > can see the exact same markup changed completely with CSS.
    >
    > Once you remove the presentational markup that has been deprecitated in
    > favor of CSS, you will see how much quicker and easier it is to get
    > things done. Imagine this scenario: 100 pages with <body
    > bgcolor="#ffffff" text="#000000">, and you want to swap it - before CSS
    > that meant changing all those body elements. Now, a change to one
    > stylesheet changes ALL the pages at the same time;
    > <body>
    > body {background-color:#fff; color:#000}
    >
    > --
    > Adrienne Boswell at Home
    > Arbpen Web Site Design Services
    > http://www.cavalcade-of-coding.info
    > Please respond to the group so others can share
    >
     
    Thad, Feb 5, 2007
    #7
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Laura
    Replies:
    1
    Views:
    704
    Gunnar Hjalmarsson
    Jun 5, 2004
  2. Stephen Witter

    opening a word doc in word not browser

    Stephen Witter, May 18, 2004, in forum: ASP .Net
    Replies:
    0
    Views:
    782
    Stephen Witter
    May 18, 2004
  3. Luis Esteban Valencia
    Replies:
    2
    Views:
    3,188
    sanjupillai
    Sep 26, 2008
  4. Sharon
    Replies:
    0
    Views:
    851
    Sharon
    Jul 27, 2005
  5. Franck
    Replies:
    1
    Views:
    5,667
  6. Al Moritz
    Replies:
    7
    Views:
    925
    Richard Laing
    Jul 22, 2003
  7. Steve
    Replies:
    6
    Views:
    872
    Eric Layman
    Mar 3, 2007
  8. Replacing a word into other word

    , Aug 23, 2005, in forum: C Programming
    Replies:
    2
    Views:
    384
    Zoran Cutura
    Aug 23, 2005
Loading...