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 4 of 4
  1. #1
    Regular Coder
    Join Date
    Sep 2002
    Posts
    157
    Thanks
    0
    Thanked 0 Times in 0 Posts

    giving any old text an class/id

    i have an external text file with all the text differences in my page(classes), and i want to be able to change any old text to this certain text.. but i dont wan to use another object/html thing to do this
    which looks like this..

    <h1 class="hello">hello</h1>

    i want to know how to make it with any old text, not in an atrrubute..i think it might have somthing to do with the div or the span thing.
    heres my guess
    <class="name">this text will have the settings for class name</?*>

    *dont know
    :confused: :confused: :confused: :confused:
    Please help :thumbsup:
    Regards
    VKiDV

  • #2
    Senior Coder joh6nn's Avatar
    Join Date
    Jun 2002
    Location
    72° W. 48' 57" , 41° N. 32' 04"
    Posts
    1,887
    Thanks
    0
    Thanked 1 Time in 1 Post
    <span class="name">text</span>
    bluemood | devedge | devmo | MS Dev Library | WebMonkey | the Guide

    i am a loser geek, crazy with an evil streak,
    yes i do believe there is a violent thing inside of me.

  • #3
    Senior Coder
    Join Date
    Aug 2002
    Location
    UK
    Posts
    2,789
    Thanks
    2
    Thanked 14 Times in 14 Posts
    The text file you refer to is better known as a .css file.
    This is where you create all your class definitions that are going to be used on your page or pages.

    In every page that is going to access these class definitions you place

    <LINK href="Name.css" rel=stylesheet type=text/css>

    in the HEAD section where Name is the path and or name of your style sheet.

    All you have to do then is add the class name to whatever HTML tag you require the attribute to effect.

    <DIV class="Your Class Name">Hello World</DIV>


    <SPAN class="Your Class Name">Hello World</SPAN>


    <P class="Your Class Name">Hello World</P>

  • #4
    Regular Coder
    Join Date
    Sep 2002
    Posts
    157
    Thanks
    0
    Thanked 0 Times in 0 Posts

    yes i know that i said wrong, suppose

    yes i know, .css is what i meant....i know how to do....


    *quikly adds to favourites*
    Regards
    VKiDV


  •  

    Posting Permissions

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