Including Style Within Body
|
Original Message
|
Name: Michael J (by mjdamato)
Date: July 12, 2005 at 12:42:12 Pacific
Subject: Including Style Within BodyOS: N/ACPU/Ram: N/A |
Comment: I need to conditionally include a style sheet within the <BODY> of a document - using PHP. Is it legitimate to use <STYLE> tags or a <LINK REL="StyleSheet" HREF="style.css" TYPE="text/css"> tag within the body of a document? Michael J
Report Offensive Message For Removal
|
|
Response Number 1
|
Name: SN
Date: July 12, 2005 at 13:26:18 Pacific
Subject: Including Style Within Body |
Reply: (edit)Alas, no. I've wanted to do the same thing a few times. I think some browsers may allow it but it's against standards. w3.org specs Good luck, -SN
Report Offensive Follow Up For Removal
|
|
Response Number 2
|
Name: Laler
Date: July 12, 2005 at 14:28:13 Pacific
Subject: Including Style Within Body |
Reply: (edit)what you can do is to add the css into the style attribute like:<td style="display: block; font-size: 10px;"> in fact, it's the only way to add some properties like background-color directly in the HTML, to still comply with w3c's validator. but I dont know how to do a:link, a:visited, etc. with it :D --- Site of the Day
Report Offensive Follow Up For Removal
|
|
Response Number 3
|
Name: Michael J (by mjdamato)
Date: July 12, 2005 at 14:40:57 Pacific
Subject: Including Style Within Body |
Reply: (edit)Thanks guys. That's basically what I thought. I can still do what I need to do, it will just make the programming more difficult. Michael J
Report Offensive Follow Up For Removal
|
Use following form to reply to current message: