Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Index and stylesheet

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Hi,
i create a style sheet and link it to my index by teh codes: <LINK REL = &quot;STYLESHEET&quot; HREF=&quot;style_sheet.css&quot; MEDIA=&quot;screen, print&quot; TYPE = &quot;text/css&quot;>
However, no matter how i try, i cannot use the attributes created in the style sheet, may I know what is the problem?

Janet
 
Is the style sheet file in the same directory as the page calling it? You might try
Code:
href=&quot;./style_sheet.css&quot;
Tracy Dryden
tracy@bydisn.com

Meddle not in the affairs of dragons,
For you are crunchy, and good with mustard.
 
Do not put <style> tags on the external style sheet DeZiner
Never be afraid to try something new.
Remember that amateurs built the Ark.
Professionals built the Titanic
 
I Need Help I have a page ( and its a reseller with dotser and i can Edit my StyleSheet but how do i get it to sit into the right place please have a look
( and search a name and have a look how far out it is
IM SO MAD AT ALL THIS !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
 
topmargin=&quot;0&quot; leftmargin=&quot;0&quot;>

cellspacing=0 cellpadding=0 width=605

Leave the margin at defualt, Narrow the table and iff needed add a little cellpadding. DeZiner
Never be afraid to try something new.
Remember that amateurs built the Ark.
Professionals built the Titanic
 
Where do i put it in my css


BODY {
COLOR: #000000; BACKGROUND-COLOR: #ffffff; text-color: #000000
}
A.shead {
FONT-WEIGHT: 800; FONT-SIZE: 10pt; COLOR: #009900; FONT-FAMILY: Verdana,Arial,Helvetica; font-color: #009900
}
A.visted {
COLOR: #f9c100
}
.stext {
FONT-WEIGHT: 400; FONT-SIZE: 10pt; COLOR: #000000; FONT-FAMILY: Verdana,Arial,Helvetica; font-color: #000000
}
.pagetitle {
CLEAR: left; FONT-WEIGHT: 800; FONT-SIZE: 25pt; PAGE-BREAK-AFTER: always; COLOR: #cc0000; FONT-FAMILY: Tahoma, Arial, Helvetica; POSITION: static; TEXT-ALIGN: left; FONT-VARIANT: normal
}
.functiontext {
FONT-WEIGHT: 800; FONT-SIZE: 14pt; COLOR: #000000; FONT-FAMILY: Verdana,Arial,Helvetica; font-color: #000000
}
.fieldtxt {
FONT-WEIGHT: 600; FONT-FAMILY: Verdana,Arial,Helvetica; font-color: #000000
font-size: 10pt
}
.notavailable {
COLOR: #aaaaaa
}
.available {
COLOR: #663300
}
.domain {
COLOR: #000000
}
.error {
FONT-WEIGHT: 800; COLOR: #ff0000
}
TD {
FONT-SIZE: 13px; COLOR: #666666; FONT-FAMILY: &quot;Trebuchet MS&quot;, Verdana, Arial, sans-serif
}
.headline {
FONT-WEIGHT: 900; FONT-SIZE: 16px; COLOR: #ffffff; TEXT-INDENT: 5pt; FONT-FAMILY: &quot;Trebuchet MS&quot;, Verdana, Arial, sans-serif
}
A:link {
COLOR: #000000; TEXT-DECORATION: underline
}
A:active {
COLOR: #000000; TEXT-DECORATION: none
}
A:visited {
COLOR: #000000; TEXT-DECORATION: underline
}
A:hover {
COLOR: #cc0000; TEXT-DECORATION: underline
}
.sidelite {
FONT-SIZE: 12px; COLOR: #ffffff; FONT-FAMILY: Arial, Helvetica, sans-serif
}
.siderite {
FONT-SIZE: 12px; COLOR: #666666; FONT-FAMILY: &quot;Trebuchet MS&quot;, Verdana, Arial, sans-serif
}
.tdjust {
FONT-SIZE: 13px; COLOR: #333333; FONT-FAMILY: &quot;Trebuchet MS&quot;, Verdana, Arial, sans-serif
}
.headlinelt {
FONT-SIZE: 16px; COLOR: #999999; FONT-FAMILY: &quot;Trebuchet MS&quot;, Verdana, Arial, sans-serif
}
OL {
FONT-SIZE: 13px; COLOR: #333333; FONT-FAMILY: &quot;Trebuchet MS&quot;, Verdana, Arial, sans-serif
}
UL {
FONT-SIZE: 13px; COLOR: #333333
}
.hdlbold {
FONT-WEIGHT: bolder; FONT-SIZE: 13px; COLOR: #ffffff; FONT-FAMILY: &quot;Trebuchet MS&quot;, Verdana, Arial, sans-serif
}
.sidedark {
FONT-SIZE: 11px; COLOR: #333333; FONT-FAMILY: Arial, Helvetica, sans-serif
}
.companyname {
FONT-WEIGHT: 800; FONT-SIZE: 36px; COLOR: #ffffff; FONT-FAMILY: &quot;Trebuchet MS&quot;, Verdana, Arial, sans-serif
}
 
NEED HELP, where exactly are you trying to put your table?
Top left?
In your style sheet you can put it as

BODY { left-margin: 0; top-margin: 0 }
or
TABLE { left-margin: 0; top-margin: 0 } etc


BTW you have this in <body bgcolor=&quot;#FFFFFF&quot; text=&quot;#000000&quot; leftmargin=&quot;0&quot; topmargin=&quot;0&quot; marginwidth=&quot;0&quot; marginheight=&quot;1&quot; link=&quot;#FFFFFF&quot; vlink=&quot;#FFFFFF&quot;

personally I would remove all that and just specify it in the style sheet. I find its best not to mix between specifying these in your page code AND in your external style sheet, one or the other. IMHO.


É enzo@endamcg.com
 
I am working on a site and already have established a style sheet controlling the sizes of the text on my page. However, when someone changes the font size, the tables's height gets distorted. Is there a way to control the table size using style sheets?...please help...and please show me an example of how to do this...thanks so much
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top