Results 1 to 2 of 2

Thread: CSS Basic Questions for beginner

  1. #1
    Join Date
    Mar 2007
    Thanked 0 Times in 0 Posts

    Red face CSS Basic Questions for beginner

    i am learning css, i like the layout of so many web sites but most of them have styled their css in an external style sheet. is it possible to know/read the css code of an external style sheet of any web page?

    i have gone thru several css web tutorials but i found none of them showing entire web page layouts with css menu & tables (not html).i have tried div tags but is it possible for tables inside tables

    for data work in tables should i stick to good old html?

    any example website or tutorials based on my above query will be very helpful - thanking you in anticipation

  2. #2
    Join Date
    Mar 2006
    Illinois, USA
    Thanked 690 Times in 678 Posts


    Those are very general questions, so here are some general ways to get started:

    1. You can always view the css of a page: it'll be in view> source, either as CSS code inside the html file or as an external .css stylesheet-- find the url to the .css file somewhere in the head section and you can view it there.

    2. CSS works WITH html. You can't make anything with CSS alone. CSS can work with divs, tables and basically every other tag that exists.
    For 'tabular' data (like a chart), it's good to use tables-- that's the point. For everything else, you can use lots of divs within each other, with complex css properties, that ends up layering them in the right way.

    3. The basic idea of CSS is that you do not include any style/formatting in your html. Your html is only the data and structure (divs, paragraphs, etc). Then the CSS formats it to look nice. To get an idea of this, try looking at a very complex page (for example, I think of facebook) WITHOUT the css. (One way is to save the html and NOT save the css. Then just open that file in your browser.)
    Very often, then, you will find that the page is just a 'list' of elements without any normal formatting at all. It won't have 'tables' or 'layers' or even many colors. It will be ONLY the content and a basic structure ordering it.
    After that, the CSS does the work to control the position, color, size, etc.

    So the short answer is that you should learn to use CSS and HTML together as a pair that can't be separated: CSS needs HTML and HTML needs CSS. (Technically you never need to use CSS, but it is much cleaner and gives you more options than just HTML. It also makes pages much easier to update.)
    Daniel - Freelance Web Design | <?php?> | <html>| espa˝ol | Deutsch | italiano | portuguŕs | catalÓ | un peu de franšais | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  3. The Following User Says Thank You to djr33 For This Useful Post:

    asiatic (04-18-2010)

Tags for this Thread


Posting Permissions

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