Click to See Complete Forum and Search --> : Doctypes are teh suck
Lovley
04-23-2004, 08:17 AM
Okay, I've been having issues with mr. Doctype.
well, not so many anymore, but there's this one last problem that's bugging the crap out of me. I recently took everyone's advice and added doctypes to all my pages at www.forgingamemory.com (http://www.forgingamemory.com) . I figured most of these would be the transitional doctype, for I've recently bought a book on standards compliance and decided to incorporate a lot of CSSdesign.
Now here's the problem. On a couple of my pages, (the pages with enough content to require scrolling down), the doctype seems to be ignoring the CSS that colors the scrollbar. If I have the doctype in there, itjust gives me the default scrollbar colors, and also adds a horizontal scroll. However, if I take the doctype out, it looks just as intended. Examples of this would be on the 'Music' and 'Contact' pages. Any ideas what the problem(s) could be?
Also, I do realize that even with much refining, the code still has work to do. I'm workin' on it!
I'm reaching out <STRIKE>for your touch
http://img1.photobucket.com/albums/1003/whs_u/alovleySIG.gif
Lovley
04-23-2004, 08:30 AM
Okay, more problems. Now, when clicking the 'click to enter' link, Google Toolbar thinks it's a 'Pop-Up' now. I do not understand, this wasn't happening before. Could this also be due to the doctype and whatnot?
Eee boy, heh.
I'm reaching out <STRIKE>for your touch
http://img1.photobucket.com/albums/1003/whs_u/alovleySIG.gif
Big Perm-dizzle
04-23-2004, 08:46 AM
i could have swore that the site was in a pop up last time.....
oh ryan where are you?
JUST LAUNCHED - www.hirethisdesigner.com (http://www.hirethisdesigner.com) - check it out
Lovley
04-23-2004, 08:52 AM
BIG PERM said...
i could have swore that the site was in a pop up last time.....
oh ryan where are you?
</div>It was a pop-up, however Google Toolbar didn't care. Now it blocks it (unless I hold CTRL then click the link)
never had this problem until I went adding all the new 'standards compliance" shnt such as doctypes/ charset, etc. http://graphicdesignforum.com/emoticons/icon_sad.gif
I'm reaching out <STRIKE>for your touch
http://img1.photobucket.com/albums/1003/whs_u/alovleySIG.gif
ecsyle
04-23-2004, 09:49 AM
<scriptlanguage='JavaScript'type='text/JavaScript'>
<!--
functionopenWindow(theURL,winName,features){//v2.0
window.open(theURL,winName,features);
}
//-->
</script></CODE>
Your 'Enter here' link is calling this javascript, which is opening a new window. Its not the doctypes problem.
[quote]W3C.org said...
There is not just one type of HTML, there are actually many: HTML 4.01 Strict, HTML 4.01 Transitional, XHTML 1.0 Strict, and many more. All these types of HTML are defined in their respective W3C specifications, but they are also defined in a machine-readable language specifying the legal structure, elements and attributes of a type of HTML.
Such a definition is called a 'Document Type Definition', or, for short, DTD.
Tools which process HTML documents, such as Web browsers, need to know which DTD an (X)HTML document is actually using: this is why each (X)HTML document needs, at the beginning, a DTD declaration, such as:
<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Strict//EN'
'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'>
Given its syntax, the DTD declaration is often called, for short, 'Doctype'.
also-
http://validator.w3.org/check?uri=http%3A%2F%2Fwww.forgingamemory.com%2Fna v.html
Your site is not valid XHTML.
http://www.artformsdesign.com/uploads/Ecsyle_sig0010.jpg
Art Forums (http://www.artformsdesign.com) | Ecsyle.Com (http://www.ecsyle.com)
Post Edited (ecsyle) : 4/23/2004 5:56:20 AM GMT
Good answer cause I for shore as hell didn't have one. LOL!
http://www.cbcamerica.com/images/webshots/banner-design.jpg
'Adventure, Excitement, A Jedi craves not these things.'
'Anger...fear...aggression. The dark side of the Force are they.'
Lovley
04-23-2004, 06:53 PM
Ah, well it's quite apparent that I'm still a newbie to standards compliance.. but I suppose that's what trial & error + nice people at GDF are for, heh. I have found that there are also HTML doctypes, and after validation, there were much less (only 13) errors when using the HTML Transitional doctype. Also, the page that seems to be getting all the problems is my nav.html, which was made by Adobe ImageReady (how's that for tossing the blame elsewhere :-P ), and it'll take a while to clean up that code.. but I'll give it a shot. Thanks again guys.
I'm reaching out <STRIKE>for your touch
http://img1.photobucket.com/albums/1003/whs_u/alovleySIG.gif
Lovley
04-23-2004, 07:26 PM
changed all the doctypes to 'HTML Transitional'.. but still getting the default scrollbars + horizontal scroll. I'm tempted to say 'F Doctypes' and just take 'em outta there. Heh, site works fine without them it seems =/
I'm reaching out <STRIKE>for your touch
http://img1.photobucket.com/albums/1003/whs_u/alovleySIG.gif
Just fix the errors. Why don't you just do that?
http://www.cbcamerica.com/images/webshots/banner-design.jpg
'Adventure, Excitement, A Jedi craves not these things.'
'Anger...fear...aggression. The dark side of the Force are they.'
ecsyle
04-23-2004, 09:44 PM
Run the CSS through the validator as well, to make sure that it is correct. Keeping your site compliant and to standards will ensure that it will work and function correct in ALL browsers. (well, thats the idea anyways). Its good practice to write compliant code.
I do not believe that it is the doctype that is causing errors. Perhaps the CSS is not being imported? Or the CSS has errors. I don't know.
http://www.artformsdesign.com/uploads/Ecsyle_sig0010.jpg
Art Forums (http://www.artformsdesign.com) | Ecsyle.Com (http://www.ecsyle.com)
Hello,
Your problem is your style sheet. You do not need to include the <--- ---> html comments or the <style> tags into your .css files. That is assumed. Take those out.
- Bill
Ryan8720
04-23-2004, 11:31 PM
XHTML doctypes ignore the IE scrollbar colors. Your CSS won't validate with them either.
http://edgewebdesign.org/ryan2.gif (http://www.edgewebdesign.org)
C:\DOS
C:\DOS\RUN
RUN DOS RUN
They are using transitional 4.01 not xhtml so that shouldn't be a problem ryan.
- Bill
Lovley
04-24-2004, 07:43 AM
took out the <style> and comment tags out of my stylesheet, but I'm still getting those horizontal bars..
(btw, I work on my website via my laptop which doesn't have internet connection, so sometimes I'll say that I've made a change, but if you were to visit the site, it wouldn't include those changes. to make it easier for assistance, I usually do upload the 'updated' version).
Thanks again guys, I apologize for being a pain. I've just been slightly irritated at the site, considering it worked just as intended without the standards compliant code refining.
I'm reaching out <STRIKE>for your touch
http://img1.photobucket.com/albums/1003/whs_u/alovleySIG.gif
Ryan8720
04-26-2004, 07:30 AM
I'm not getting the scrollbars on Firefox or IE (PC).
http://edgewebdesign.org/ryan2.gif (http://www.edgewebdesign.org)
C:\DOS
C:\DOS\RUN
RUN DOS RUN
Lovley
04-26-2004, 09:42 AM
hmm, that's wierd. I took out all the doctypes earlier, just so things looked the way I wanted them to. heheh, I'm sorry. I'll just leave it non-compliant until I gain more knowledge on how to make everything work the way I want to. Thanks for your help guys, sorry I didn't follow through with it.
I just don't have the time to study code at the moment, I've been busy with my term-paper, workin' at Subway and my lovely girlfriend. I will find time soon, probably after school gets out *rolls eyes*
I'm reaching out <STRIKE>for your touch
http://img1.photobucket.com/albums/1003/whs_u/alovleySIG.gif