A Digital Age Deserves A Digital Leader

CSS question

CSS question

Postby denis_o_leary » Sun Dec 28, 2003 9:33 pm

where in a CSS page would the head section be? because theres no head lable like in html pages
PRO Level 4
Posts: 109
Joined: Wed Jul 23, 2003 10:57 pm
Location: Ireland

Postby Weaver » Mon Dec 29, 2003 11:50 am

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
Public Keys

The primary purpose of the DATA statement is to give names to constants; instead of referring to pi as 3.141592653589793 at every appearance, the variable PI can be given that value with a DATA statement and used instead of the longer form of the constant. This also simplifies modifying the program, should the value of pi change.
-- FORTRAN manual for Xerox Computers
PROfessional Member
User avatar
Posts: 1967
Joined: Wed Jun 19, 2002 12:05 am
Location: /home/weaver/

Postby jonnywright » Thu Jan 29, 2004 10:42 pm

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;
}
Banned
User avatar
Posts: 53
Joined: Thu Aug 14, 2003 10:25 pm
Location: Leicester UK

Postby shakib » Thu Mar 04, 2004 9:41 am

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"/>
PRO New Member
Posts: 8
Joined: Wed Mar 03, 2004 1:56 pm

Postby Weaver » Thu Mar 04, 2004 5:21 pm

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: Select all
<link rel="stylesheet" type="text/css" href="myfile.css"/>


Should be:

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


(note space before />).

-Weaver
Public Keys

The primary purpose of the DATA statement is to give names to constants; instead of referring to pi as 3.141592653589793 at every appearance, the variable PI can be given that value with a DATA statement and used instead of the longer form of the constant. This also simplifies modifying the program, should the value of pi change.
-- FORTRAN manual for Xerox Computers
PROfessional Member
User avatar
Posts: 1967
Joined: Wed Jun 19, 2002 12:05 am
Location: /home/weaver/

Postby shakib » Sun Mar 07, 2004 7:21 am

:p
PRO New Member
Posts: 8
Joined: Wed Mar 03, 2004 1:56 pm

Return to HTML, CSS, and Scripts

Who is online

Users browsing this forum: No registered users and 1 guest