Results 1 to 5 of 5

Thread: dhtml tabs

  1. #1
    Join Date
    Oct 2005
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default dhtml tabs

    Hello,

    I've been using the dhtml tabs script to build a tabs page. It's a great script.
    I have a question though on how to modify a certain portion of it. You see I want to modify the tablist so that instead of it having one text line like this:
    Department Info
    I want the text to be on two seperate lines like this:
    Department
    Info

    I realize this might be a real simple thing to do but when messing with the tablist contents code I was not able to get it to work properly. Any help would be appreciated.

    Attached to this message is the asp code for the tab page

    Thank you,

    Dustin

  2. #2
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    Actually this is harder than it appears. The CSS used to create the tabs don't make it easy to add a new break between a select tag. I fiddled around with the CSS a bit, though couldn't get it to look right across browsers.

  3. #3
    Join Date
    Oct 2005
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Do you think I could see the code you fiddled around with. I only need it to look good in internet explorer as this is for my companies intranet.

    Thank you,

    Dustin

  4. #4
    Join Date
    Oct 2005
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    bump.

  5. #5
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    For IE only, this looked pretty good to me:

    HTML Code:
            <li><font size="2"><a href="#" class="current" onclick="expandcontent('sc1', this)" ><div style="width:6em;text-align:center;display:inline;margin-right:2px;"><font size="2.5" face="Arial, Helvetica, sans-serif">Department<br>
              Info</font></div></a></font></li>
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

Bookmarks

Posting Permissions

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