Attention: PROnetworks has upgraded our forum from phpbb2 to phpbb3!!

Please head over to our new converted forum at: http://www.pronetworks.org/forums/

This old forum will remain 'read-only' until approximately February 2009. We look forward to seeing you at the new forum!
Author Message
denis_o_leary
PostPosted: Sun Dec 28, 2003 5:33 pm Reply with quote

PRO Level 5
 
 


Joined: 23 Jul 2003
Posts: 187
Location: Ireland
where in a CSS page would the head section be? because theres no head lable like in html pages
 
Back to top
Weaver
PostPosted: Mon Dec 29, 2003 7:50 am Reply with quote

PROfessional Member
 
 


Joined: 18 Jun 2002
Posts: 2587
Location: /home/weaver/
Please rephrase your question, as I don't think I understand what you are asking. Are you referring to the CSS document itself or the html to which the CSS docuement is applied.

There isn't a "head" section is a CSS docuement itself. The "head" section only exists in the html.

-Weaver
 
Back to top
jonnywright
PostPosted: Thu Jan 29, 2004 6:42 pm Reply with quote

Banned
 
 


Joined: 14 Aug 2003
Posts: 76
Location: Leicester UK
Weavers right, heres an example of a css from a site of mine:

body
{
scrollbar-face-color: #FFCC00;
scrollbar-shadow-color: #000000;
scrollbar-highlight-color: #000000;
scrollbar-3dlight-color: #000000;
scrollbar-darkshadow-color: #0000006;
scrollbar-track-color: #000000;
scrollbar-arrow-color: #000000;
}

.form
{
font-size: 12;
border: 1 Solid #FFCC00;
background: #000000;
color: #FFFFFF;
font-family: tahoma;
}
 
Back to top
shakib
PostPosted: Thu Mar 04, 2004 5:41 am Reply with quote

PRO New Member
 
 


Joined: 03 Mar 2004
Posts: 8
presumably you're tlking about a text file containing css with an extension like .css.

In which case the two posts are correct and you do not need the HTML standard tags in any such document, you simply reference it from your html page:

<link rel="stylesheet" type="text/css" href="myfile.css"/>
 
Back to top
Weaver
PostPosted: Thu Mar 04, 2004 1:21 pm Reply with quote

PROfessional Member
 
 


Joined: 18 Jun 2002
Posts: 2587
Location: /home/weaver/
shakib wrote:
presumably you're tlking about a text file containing css with an extension like .css.

In which case the two posts are correct and you do not need the HTML standard tags in any such document, you simply reference it from your html page:

<link rel="stylesheet" type="text/css" href="myfile.css"/>


Not to be a stickler but if we are going to use XHTML style tagging, it should be done in a way that introduces backward compatibility with [nearly all] page rendering engines.

Code:
<link rel="stylesheet" type="text/css" href="myfile.css"/>


Should be:

Code:
<link rel="stylesheet" type="text/css" href="myfile.css" />


(note space before />).

-Weaver
 
Back to top
shakib
PostPosted: Sun Mar 07, 2004 3:21 am Reply with quote

PRO New Member
 
 


Joined: 03 Mar 2004
Posts: 8
:p
 
Back to top
Back to top
Index >> Webmaster Domain & Code Room >> CSS question

Page 1 of 1

 


Tired of the Ads? Registered users have 80% less adverts.