Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 8 of 8
  1. #1
    New Coder
    Join Date
    Mar 2004
    Posts
    23
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Can this html be wrapped up in a style sheet?

    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>

  • #2
    Regular Coder
    Join Date
    Jul 2004
    Location
    engoku no anime
    Posts
    354
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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!

  • #3
    Senior Coder chilipie's Avatar
    Join Date
    Jul 2004
    Location
    Shrewsbury, UK Age: 16
    Posts
    1,117
    Thanks
    0
    Thanked 0 Times in 0 Posts
    This is what you can use to put the CSS into a separate style sheet:
    Code:
    <link rel="stylesheet" type="text/css" href="stylesheet.css" />
    This goes in the <head> section of your document.

  • #4
    Senior Coder Nightfire's Avatar
    Join Date
    Jun 2002
    Posts
    4,265
    Thanks
    6
    Thanked 48 Times in 48 Posts
    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.

  • #5
    Regular Coder
    Join Date
    Jul 2004
    Location
    engoku no anime
    Posts
    354
    Thanks
    0
    Thanked 0 Times in 0 Posts
    What? Why would you need to use includes, Nightfire?

  • #6
    Senior Coder Nightfire's Avatar
    Join Date
    Jun 2002
    Posts
    4,265
    Thanks
    6
    Thanked 48 Times in 48 Posts
    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

  • #7
    Regular Coder
    Join Date
    Jul 2004
    Location
    engoku no anime
    Posts
    354
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Oh okay. I see your point. I never thought of looking at it from that perspective. Good question!

  • #8
    Regular Coder Skyzyx's Avatar
    Join Date
    Aug 2002
    Location
    Silicon Valley, CA
    Posts
    980
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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).

    Creator of SimplePie and Tarzan AWS, co-founder of WarpShare, co-built the Y! Messenger website, usability-focused, and an INFJ personality.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •