homepage Welcome to WebmasterWorld Guest from 54.163.84.199
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / HTML
Forum Library, Charter, Moderators: incrediBILL

HTML Forum

    
XHTML Issues - doctype
not working with css
webmasterguy




msg:3284487
 3:49 am on Mar 17, 2007 (gmt 0)

For some strange reason my search input box on my site losses the css style ie: border color, size etc..when i use the doctype below. Alse when using the doctype below in my documents its not allowing me to use scrollbar color change code in my css.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

What causes this to happern?

 

Robin_reala




msg:3284626
 10:43 am on Mar 17, 2007 (gmt 0)

At a guess, are you serving your CSS files with the correct media type? It should be ‘text/css’. You can check this if you’re using Firefox by going directly to the CSS file (in the address bar), going to Tools / Page Info and checking the Type field.

penders




msg:3284678
 12:55 pm on Mar 17, 2007 (gmt 0)

When you are not using your "XHTML 1.0 Transitional" DOCTYPE, what DOCTYPE are you using (if any)?

Certainly WITHOUT a DOCTYPE, CSS can behave very differently - with IE not cascading styles properly etc. etc.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / HTML
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved