Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    New to the CF scene
    Join Date
    Feb 2007
    Location
    UK
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Question About CSS Layouts

    When you create a professional website using CSS you don't create tables within the CSS document to format your page like you would a HTML document right?

    You specify the locations of everything in the CSS document if I am thinking right?

  • #2
    The fat guy next door VIPStephan's Avatar
    Join Date
    Jan 2006
    Location
    Halle (Saale), Germany
    Posts
    8,866
    Thanks
    6
    Thanked 1,029 Times in 1,002 Posts
    CSS isn’t HTML. So you can’t create tables or paragraphs or anything in or with CSS. You only define styles there through the special CSS syntax and apply those styles to the HTML elements in that HTML document.

    Does that make sense?

  • #3
    New to the CF scene
    Join Date
    Feb 2007
    Location
    UK
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts
    So CSS is completely about formatting your site by telling the images and such where you want them rather than filling tables with images?

  • #4
    New to the CF scene
    Join Date
    May 2007
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Yes. The HTML file holds ALL of the content, and, ideally, the CSS files holds ALL of the formatting. You don't create any page elements in CSS, you just say what they should look like.

  • #5
    The fat guy next door VIPStephan's Avatar
    Join Date
    Jan 2006
    Location
    Halle (Saale), Germany
    Posts
    8,866
    Thanks
    6
    Thanked 1,029 Times in 1,002 Posts
    Exactly. For example look at http://csszengarden.com and study that page thoroughly. You will see that the actual HTML file has no images at all (and no tables at all), and the designs/layouts were applied just through CSS.


  •  

    Posting Permissions

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