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
    New to the CF scene
    Join Date
    Dec 2009
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Using Arrays with either CSS or HTML Mark-up?

    Is it possible to use either CSS or basic HTML mark-up in an array?
    All I need is to bold some text, and use the <br/> tag.

    Thanks in advance for any replies.

    Dan

  • #2
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,861
    Thanks
    160
    Thanked 2,223 Times in 2,210 Posts
    Blog Entries
    1
    Is it possible to use either CSS or basic HTML mark-up in an array?
    There's no array concept in HTML or CSS, since they are not programming languages.
    All I need is to bold some text, and use the <br/> tag.
    Please explain more.
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)

  • #3
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    I think they mean something like this.
    Code:
    var arr = new Array();
    arr[0] = '<p style="color:#F00">some text</p>';
    arr[1] = '<p style="color:#00F">some more text</p>';
    That above is a javascript array. Please explain yourself better if this isn't what you need.
    ||||If you are getting paid to do a job, don't ask for help on it!||||

  • #4
    New to the CF scene
    Join Date
    Dec 2009
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    The set-up is a captioning page, where people e-mail in comments based on a currently available picture. Here's the link: (http://www.captiongallery.com/wcff/wcff.htm).
    What I'm looking for is the ability to have multiple slideshows on a single page, and accompanying text. I have that part figured out.
    The reason I need the bold and the <br/> tags is for ease of reading.
    Without the abilty to at least use the <br/> tag (or equivalent), I will end up with something like this (goes with Will Cap For Food #119, if curious):

    Daleman: W: Taking your brain out and putting
    it in a jar! Whats the matter with you? M: Yes
    dear. W: And look at the blood everywhere. I
    supposed I'm supposed to clean up the mess?
    M: Yes dear. W: Blood on your clothes. Guess
    who has to scrub that mess out? M: Yes dear.
    W: Really, I don't know why I bother with you.
    M: Yes dear. W: When I think back and could
    have married Roger Green. He owns his own
    construction company now. M: Yes dear. W:
    Big house, new cars, and he helps around the
    house. Now *that's* a real man. M: Yes dear.

    What I'm looking to accomplish is to get the text to display like below, as the above is almost impossible to make any sense out of:

    Daleman:
    W: Taking your brain out and putting it in a jar! Whats the matter with you?
    M: Yes dear.
    W: And look at the blood everywhere. I supposed I'm supposed to clean up the mess?
    M: Yes dear.
    W: Blood on your clothes. Guess who has to scrub that mess out?
    M: Yes dear.
    W: Really, I don't know why I bother with you.
    M: Yes dear.
    W: When I think back and could have married Roger Green. He owns his own construction company now.
    M: Yes dear.
    W: Big house, new cars, and he helps around the house. Now *that's* a real man.
    M: Yes dear.

    There may be 30 or more captions per picture, and a slideshow format would make for a lot of space saving. Right now I have 121 different pages for older captions, where with this format I could cut it down to twelve or less.
    Last edited by Amon; 12-09-2009 at 04:03 PM.


  •  

    Posting Permissions

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