1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Question About CSS Layouts

Discussion in 'CSS' started by gobbly2100, May 23, 2007.

  1. #1
    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?
     
    gobbly2100, May 23, 2007 IP
  2. htmlmaster

    htmlmaster Peon

    Messages:
    25
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    yes you are right
    all the coding on css document
    but it is call a xhtml document not a html document
    html document is different and xhtml little bit different from html
    but html is advance from html
    reason is that if u use xhtml document with css document then ur web page weight is very less and u opne ur web page very early in browser because ur all coding on css pages and u just call a css document on ur web page
    so, in today so many developer useing xhtml document with css document
    :)
     
    htmlmaster, May 24, 2007 IP
  3. Katy

    Katy Moderator Staff

    Messages:
    3,490
    Likes Received:
    513
    Best Answers:
    7
    Trophy Points:
    355
    #3
    Well you can't build a site with just plain CSS. Tables were originally made to store tabular data not the content. Use divs. You customize them with CSS and then insert them into your page. Simple. :)
     
    Katy, May 24, 2007 IP
  4. htmlmaster

    htmlmaster Peon

    Messages:
    25
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    hi katy
    h r u
    well i think u can build a good website with the css in xhtml
    if u not use table tag only use css with div tag in xhtml document then u make a simple and beautiful site.
    like i will show you one example:
    indiancity.com
    u can open that site that site only with css.not table tag.:)
     
    htmlmaster, May 24, 2007 IP
  5. Katy

    Katy Moderator Staff

    Messages:
    3,490
    Likes Received:
    513
    Best Answers:
    7
    Trophy Points:
    355
    #5
    I guess you misunderstood me. I meant you cannot build a site with plain CSS, you need to use HTML/XHTML too. :)
     
    Katy, May 24, 2007 IP
  6. htmlmaster

    htmlmaster Peon

    Messages:
    25
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    ok katy
    i am sorry
    yes i am agree with u
    u say right:)
     
    htmlmaster, May 24, 2007 IP
  7. soulscratch

    soulscratch Well-Known Member

    Messages:
    964
    Likes Received:
    45
    Best Answers:
    0
    Trophy Points:
    155
    #7
    You mean to say people are serving "XHTML" documents as text/html and the browser reads them as HTML unless they specify the correct MIME TYPE for XHTML, right?
     
    soulscratch, May 25, 2007 IP
  8. htmlmaster

    htmlmaster Peon

    Messages:
    25
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #8
    yes if u want to make website with css then should use xhtml pages not html pages.
    and browser also read it is xhtml pages.
    just change in the document type in coding page and make html and xhtml pages.
     
    htmlmaster, May 25, 2007 IP
  9. Dan Schulz

    Dan Schulz Peon

    Messages:
    6,032
    Likes Received:
    436
    Best Answers:
    0
    Trophy Points:
    0
    #9
    STOP THE NONSENSE ALREADY

    You don't have to use XHTML to use CSS. In fact, XHTML is virtually USELESS because the most dominant browser on the planet doesn't understand XHTML (though it understands XML clear as day). You can use HTML 4.01 just as easily as you can XHTML. Anyone who doesn't agree should try it for themselves and see what happens.

    XHTML is an application of XML. Which requires you to use an XML encoding and serve it as application/xhtml+xml (failure to do so will result in the XHTML file being served as plain vanilla HTML, with some syntax errors). Before using real XHTML you should at least have an understanding of how XML works.

    For more information, please read the following stickied threads over at SitePoint.com
    Frequently Asked Questions about HTML and XHTML
    XHTML vs HTML FAQ
    XHTML 1.0 vs 1.1
     
    Dan Schulz, May 26, 2007 IP
  10. htmlmaster

    htmlmaster Peon

    Messages:
    25
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #10
    i am not agree with u
     
    htmlmaster, May 27, 2007 IP
  11. Dan Schulz

    Dan Schulz Peon

    Messages:
    6,032
    Likes Received:
    436
    Best Answers:
    0
    Trophy Points:
    0
    #11
    Then try using HTML 4.01 with CSS the same way you use XHTML (just be sure to pay attention to HTML's syntax). What's the worst that will happen if you do? It'll work.
     
    Dan Schulz, May 27, 2007 IP
  12. htmlmaster

    htmlmaster Peon

    Messages:
    25
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #12
    i am make above 250sites in xhtml and css.
    and i have no problem and looking good my all sites.
    check this one
    himalyan.in
     
    htmlmaster, May 27, 2007 IP
  13. Dan Schulz

    Dan Schulz Peon

    Messages:
    6,032
    Likes Received:
    436
    Best Answers:
    0
    Trophy Points:
    0
    #13
    Have you tried viewing those sites with images disabled while allowing the stylesheet to be applied? I'm seeing some major accessibility problems with the one you provided.
     
    Dan Schulz, May 27, 2007 IP
  14. htmlmaster

    htmlmaster Peon

    Messages:
    25
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #14
    please tell me what is the problem of my this site so i am improve my site.
     
    htmlmaster, May 27, 2007 IP
  15. Dan Schulz

    Dan Schulz Peon

    Messages:
    6,032
    Likes Received:
    436
    Best Answers:
    0
    Trophy Points:
    0
    #15
    For staters...
    
    <div id="banner1">
    <img src="images/himalyan.in_01.gif" width="199" height="83" border="0" alt="" /><br />
    <a href="/"><img src="images/himalyan.in_03.gif" width="199" height="26" border="0" alt="" /></a><br />
    <a href="/link.php"><img src="images/himalyan.in_04.gif" width="199" height="25" border="0" alt="" /></a><br />
    <a href="/resources.php"><img src="images/himalyan.in_05.gif" width="199" height="28" border="0" alt="" /></a><br />
    <a href="/contact.php"><img src="images/himalyan.in_06.gif" width="199" height="34" border="0" alt="" /></a><br />
    <img src="images/himalyan.in_07.gif" width="199" height="71" border="0" alt="" /><br>
    </div>
    
    Code (markup):
    Should be a list. Plain text works best, but if you're going to use HTML images, you'll have to provide ALT text for each image. Just having an empty alt="" attribute to shut the HTML validator up won't work, because nobody can see the links (or the alternative text) if the attributes are empty and images are not enabled.

    Second, your DIV with the ID of "left" needs to have a background color applied to it. This can be covered up with the background image you're using, but those who don't see the images will have a very hard time reading the link text (yellow text on a white background).

    The same thing can be said about your footer.

    And as far as your two content images are concerned, you need real alternative text. The "SEO optimized" text you're using does nothing for someone who's viewing your site through a screen reader, the Lynx browser or who has turned off images while still letting the CSS get rendered (dialup users such as myself are often guilty of this - though I leave the images enabled). Try replacing them with actual alternative descriptions of what the images are. In your first case, you have an image of two women walking down a street carrying shopping bags. The second image shows a man and woman walking down an aisle in a supermarket. Why not describe them as such? You can still get your keywords in there, and probably IMPROVE your SEO "value" of your page's content by catering to as many people as possible instead of search engines.

    This is just a quick overview of course. A thorough analysis would require its own thread.
     
    Dan Schulz, May 27, 2007 IP
  16. htmlmaster

    htmlmaster Peon

    Messages:
    25
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #16
    ok i am see your all problems i will be change as soon as possible
     
    htmlmaster, May 28, 2007 IP
  17. Dan Schulz

    Dan Schulz Peon

    Messages:
    6,032
    Likes Received:
    436
    Best Answers:
    0
    Trophy Points:
    0
    #17
    Just so you know, if you want to keep the images, try this out:
    http://www.pmob.co.uk/temp/navimagereplace.htm

    Paul O'Brien (if you ever go to SitePoint, you'll know him there as Paul O'B) recommends using <em> instead of <span> in his code so that IE 5/Mac can handle it, but with the browser being officially dead for four years now, I think you can safely switch back to using the SPAN element now. :)
     
    Dan Schulz, May 28, 2007 IP
  18. htmlmaster

    htmlmaster Peon

    Messages:
    25
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #18
    i will be check this site
     
    htmlmaster, May 28, 2007 IP