Today's Posts Follow Us On Twitter! TFL Members on Twitter  
Forum search: Advanced Search  
Navigation
Marketplace
  Members Login:
Lost password?
  Forum Statistics:
Forum Members: 24,254
Total Threads: 80,792
Total Posts: 566,471
There are 954 users currently browsing (tf).
 
  Our Partners:
 
  TalkFreelance     Design and Development     HTML/XHTML/DHTML/CSS :

CSS Doctype

Thread title: CSS Doctype
Closed Thread  
Page 1 of 2 1 2 >
    Thread tools Search this thread Display Modes  
04-18-2005, 09:05 PM
#1
Paul is offline Paul
Status: I love this place
Join date: Apr 2005
Location: Canada
Expertise:
Software:
 
Posts: 723
iTrader: 0 / 0%
 

Paul is on a distinguished road

  Old  CSS Doctype

So I am very new to CSS. Actually I just decided about an hour ago that I need to learn it. So I have a question:

What is the proper doctype to use in a valid CSS document?
Thanks.

04-18-2005, 09:23 PM
#2
FiveInteractive is offline FiveInteractive
Status: Request a custom title
Join date: Jan 2005
Location: UK
Expertise:
Software:
 
Posts: 1,216
iTrader: 0 / 0%
 

FiveInteractive is on a distinguished road

Send a message via AIM to FiveInteractive Send a message via MSN to FiveInteractive

  Old

Css doesnt need a doctype.
Its the whole document you give a doctype, usually for use with css go for a xhtml doctype.
So either specify xhtml1.0 ( transitional, frameset,strict,) or xhtml1.1 , or even html4.01 should validate with css

http://www.w3schools.com/tags/tag_doctype.asp

04-18-2005, 09:30 PM
#3
Paul is offline Paul
Status: I love this place
Join date: Apr 2005
Location: Canada
Expertise:
Software:
 
Posts: 723
iTrader: 0 / 0%
 

Paul is on a distinguished road

  Old

Thats what I thought. Theres alot of them so I thought maybe there was a few I didn't know about. Thanks.

04-18-2005, 09:30 PM
#4
derek lapp is offline derek lapp
Status: design rockstar
Join date: Jan 2005
Location: guelph, ontario
Expertise:
Software:
 
Posts: 2,246
iTrader: 0 / 0%
 

derek lapp is on a distinguished road

  Old

css doesnt get doctypes. browsers need doctypes so they know how to correctly render the html it's given - IS strict vs transitional. they have different behaviors, CSS behanves the same everytime.

04-18-2005, 09:37 PM
#5
Paul is offline Paul
Status: I love this place
Join date: Apr 2005
Location: Canada
Expertise:
Software:
 
Posts: 723
iTrader: 0 / 0%
 

Paul is on a distinguished road

  Old

I know what doctypes do and I know CSS doesn't need one specificaly. I must have worded my question badly. Sorry about that.

04-18-2005, 09:42 PM
#6
FiveInteractive is offline FiveInteractive
Status: Request a custom title
Join date: Jan 2005
Location: UK
Expertise:
Software:
 
Posts: 1,216
iTrader: 0 / 0%
 

FiveInteractive is on a distinguished road

Send a message via AIM to FiveInteractive Send a message via MSN to FiveInteractive

  Old

No Problems Paul, good luck with the learning

04-18-2005, 09:46 PM
#7
Paul is offline Paul
Status: I love this place
Join date: Apr 2005
Location: Canada
Expertise:
Software:
 
Posts: 723
iTrader: 0 / 0%
 

Paul is on a distinguished road

  Old

Thank you.

Insted of making a new thread i thought I would post another question here (which I hope is ok):

What is the difference when I see "#content" and ".content". When do you use a pieriod, when do you use a "#"?

04-18-2005, 10:02 PM
#8
opserty is offline opserty
Status: I love this place
Join date: Jan 2005
Location: UK, Birmingham
Expertise:
Software:
 
Posts: 606
iTrader: 0 / 0%
 

opserty is on a distinguished road

Send a message via MSN to opserty

  Old

# is an id="bla" tag and should be unique, you use it only once in the entire page.

Period is used from classes which you will use more then once eg for text formatting, you uses the class="bla" tag in this case.

<span class="sidemenu">Some side text here</span>

Hope that helps.

04-18-2005, 10:03 PM
#9
Paul is offline Paul
Status: I love this place
Join date: Apr 2005
Location: Canada
Expertise:
Software:
 
Posts: 723
iTrader: 0 / 0%
 

Paul is on a distinguished road

  Old

It helps greatly. Thanks opserty.

04-18-2005, 10:06 PM
#10
opserty is offline opserty
Status: I love this place
Join date: Jan 2005
Location: UK, Birmingham
Expertise:
Software:
 
Posts: 606
iTrader: 0 / 0%
 

opserty is on a distinguished road

Send a message via MSN to opserty

  Old

Just to let you know I found these 2 sites great for helping me learn:

http://www.w3schools.com/css/default.asp
http://www.pixel4pixel.ampedhost.com/css/css1.html

Closed Thread  
Page 1 of 2 1 2 >


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

  Posting Rules  
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump:
 
  Contains New Posts Forum Contains New Posts   Contains No New Posts Forum Contains No New Posts   A Closed Forum Forum is Closed