...

View Full Version : Can this html be wrapped up in a style sheet?



stcrim
09-27-2004, 03:07 AM
Can the html below be wrapped up in a style sheet so it can be called remotely rather than having to reside on the actual page??? There will be two other scripts called along with the style sheet.

Sorry, rank beginner here...

-steve-

<div id="point1" STYLE="position:absolute;visibility:visible;">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<a href="javascript: MM_openBrWindow('http://www.mysite.com','','top=5,left=5,width=535,height=560,resizable=yes,scrollbars=yes')">
<img src="http://www.mysite.com/myImage.gif" width=96 height=60 alt="" border="0">
</a>
</td>
</tr>
<tr>
<td>
<p align="center"><a href="javascript: MM_openBrWindow('http://www.mysite.com/more.html','','top=5,left=5,width=535,height=560,resizable=yes,scrollbars=yes')"><font face="Arial" size="2" color="#0000FF">More
Info</font></a></p>
</td>
</tr>
<tr>
<td>
<center><a href="javascript: MM_openBrWindow('http://www.mysite.com/new.html','','top=5,left=5,width=535,height=560,resizable=yes,scrollbars=yes')">
<font face="Arial" size="2" color="#0000FF">What's New</font>
</a></center>
</td>
</tr>
</table>
</div>

gohankid77
09-27-2004, 03:58 AM
Yes, it can be put into a stylesheet. It is a good thing you are learning CSS! You are using a lot of deprecated elements and attributes!

chilipie
09-27-2004, 03:48 PM
This is what you can use to put the CSS into a separate style sheet:

<link rel="stylesheet" type="text/css" href="stylesheet.css" />
This goes in the <head> section of your document.

Nightfire
09-27-2004, 03:55 PM
No, that html can't be put into a stylesheet. If you're wanting to do that, you'll need a serverside language to be able to use includes.

gohankid77
09-27-2004, 10:18 PM
What? Why would you need to use includes, Nightfire?

Nightfire
09-27-2004, 10:26 PM
From what I understand, he uses ALL that html on every page on his site. He's wanting a quick way to link it into each page, so if he changes it once he wouldn't need to change it on every single page. That's what I'm getting from this


Can the html below be wrapped up in a style sheet so it can be called remotely rather than having to reside on the actual page???

He's not asking can I change tags to work with css

gohankid77
09-27-2004, 10:31 PM
Oh okay. I see your point. I never thought of looking at it from that perspective. Good question!

Skyzyx
09-28-2004, 12:11 AM
Although it would be best to do this with a server-side language, it is also POSSIBLE to do this with JavaScript (although the accessibility/usability drawbacks are many).



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum