inline styles

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Kevin R

    inline styles

    Wondering why my inline style is failing

    here is the content.html page that I am calling.
    <!-- content4.html -->

    <div style"width: 770px; text-align:left;">
    <h1Page 4 </h1>
    <p>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
    eirmod tempor</p>
    </div>

    <!--end content4.html -->
    The parent tag is <div align="center"a nd seems to dominate.
    It should be easy enough; can't figure why it is so much trouble.

    insight appreciated
    Thank You
    Kevin

  • rf

    #2
    Re: inline styles


    "Kevin R" <kraleigh@sbcgl obal.netwrote in message
    news:ZNudnccL0f c0YH_anZ2dnUVZ_ hynnZ2d@giganew s.com...
    Wondering why my inline style is failing
    >
    here is the content.html page that I am calling.
    <!-- content4.html -->
    >
    <div style"width: 770px; text-align:left;"
    >
    <div style="width: 770px; text-align:left;">


    Comment

    • Jukka K. Korpela

      #3
      Re: inline styles

      Scripsit Kevin R:
      Wondering why my inline style is failing
      Inline styles are _bad_. Don't do inline styles, mm'kay? Just kidding;
      this is now among the least of your problems.
      <div style"width: 770px; text-align:left;">
      You have syntax error in your HTML markup. Fix it first. Use a validator
      if needed.

      Then consider CSS issues, like the question "Do I really want to
      alienate all users who wish to view my page comfortably in a 600 pixels
      wide window?" (600 pixels is pretty much but sometimes convenient when
      you wish to devote e.g. an entire half of the screen to a browser
      window)
      insight appreciated
      Insight not needed here. No reason to waste creative potential to
      dealing with simple technicalities. Save your cortex for better use, and
      use a validator (and manuals or references).

      --
      Jukka K. Korpela ("Yucca")


      Comment

      Working...