#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2004
    Location
    Orlando, FL
    Posts
    129
    Rep Power
    11

    vb3 rc3 generated doctype screws up my css


    I am trying to develope http://www.hotlinkforums.com/, but why does the doctype that is generated by the forums screwup my styles. When I take it out of my homepage it makes my stylesheet work correctly, but when I use it it doesn't. Does it matter if I don't use the doctype? Will that screw up search engine ranking or anything?

    Also what the heck is all of this in my homepage?:
    <html dir="ltr" lang="en">
    <head>
    <meta http-equiv="Pragma" content="no-cache" />
    <meta http-equiv="Expires" content="-1" />
    <meta http-equiv="Cache-Control" content="no-cache" />
    <title>HotLink Forums - powered by vBulletin</title>
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
    <meta name="generator" content="vBulletin 3.0.0 Release Candidate 3" />
    <meta name="keywords" content="vbulletin,forum,discussion,bulletin board,hotlink,hosting,linux,vb,domains,reseller,affordable,cheap" />
    <meta name="description" content="Message Boards for HotLink Hosting" />

    Does the direction and lagnuage statements in the html tag matter towards anythign important?
    What do all these weird meta tags such as pragma, expires, cache-control, generator do and do I need them there?
    Do the meta tags below the title need to be below the title because I know I can put them above it with the others.
    Also, why is there a blank white space at the top of the forums?
    And why does the background to my td at the bottom not work?
    HotLink Web Hosting Services
    Afordable & Reliable Hosting Solutions
    Web Host Debate Discussion Boards
    Free Banner Advertising For All Members
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Beginner (1000 - 1499 posts)

    Join Date
    Dec 2003
    Posts
    1,037
    Rep Power
    27
    One point that seems to be forgotten, when using XHTML you do really need to put #s before hex colour codes or Mozilla won't display the colour at all. It's just one of those things that is easily overlooked.

    The dir attribute in the <html> just tells it to put the text from left to right, so isn't particularly important, though you won't gain anything from removing it. Generator meta tag is just a way for the people who made the vBulletin code to say they did, much like Frontpage adds a generator tag saying that the page was made in Frontpage. Overall, the meta tags are probably there for a reason, so you wouldn't really gain anything by taking them out.
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2004
    Location
    Orlando, FL
    Posts
    129
    Rep Power
    11
    I'm not asking if I would gain anything by taking them out, but if I would loose anything by taking them off the pages.

    I know the concept of meta tags, but I was looking for a much more detailed answer as to what each one does.

    Thank you for letting me know about the # being a must with xhtml, I guess my assumptions were correct. If only I had tested it.
    HotLink Web Hosting Services
    Afordable & Reliable Hosting Solutions
    Web Host Debate Discussion Boards
    Free Banner Advertising For All Members
  6. #4
  7. Retired
    Devshed Supreme Being (6500+ posts)

    Join Date
    Feb 2002
    Location
    Finland
    Posts
    9,143
    Rep Power
    2493
    Does the direction and lagnuage statements in the html tag matter towards anythign important?
    What do all these weird meta tags such as pragma, expires, cache-control, generator do and do I need them there?
    Do the meta tags below the title need to be below the title because I know I can put them above it with the others.
    Also, why is there a blank white space at the top of the forums?
    And why does the background to my td at the bottom not work?
    Direction matters if your language is Arabic? or Chinese. Language is quite important. Defining all these things should speed up remdering time as the browser should unterstand the markup language before the actual content of the page arrives.
    Pragma and that stuff stops the page(or tries) from saving, each time the browser visits the page, it wants to get the latest version of the page.
    Meta tag postion, don't suppose that really matters. Regarding losing anthing, maybe a fraction of time on load, however, the meta keywords are pretty irrelivant and just advertising for Vb.

    Cheers,
    Jamie

    >_ skiFFie ? | Twitter

    __________________

    Let the might of your compassion arise to bring a quick end
    to the flowing stream of the blood and tears .....
    Please hear my anguished words of truth.

    __________________
  8. #5
  9. Thanks Johnny Hart (BC) R.I.P.

    Join Date
    May 2003
    Location
    Dallas
    Posts
    5,268
    Rep Power
    1956
    <meta http-equiv="Pragma" content="no-cache" />
    <meta http-equiv="Expires" content="-1" />
    <meta http-equiv="Cache-Control" content="no-cache" />
    These particular metas are important to this application. If the browser or proxy server were to cache the page, the visitor would never get a current version. This is a PHP/db page. The file time stamp is not changed, so the browser would think there is no reason to load a new page.

    You didn't say what doesn't work means in re the stylesheet. I'm going to guess that you're using IE, and the doctype puts IE into conformance mode, and you're expecting quirks mode rendering.

    cheers,

    gary
    There are those who manage to build a web site without knowing what they're doing; thereby proving to themselves they do, indeed, know what they're doing.

    My html and css workshop, demos and tutorials.
    Ask a better question, get a better answer.

IMN logo majestic logo threadwatch logo seochat tools logo