Results 1 to 2 of 2

Thread: Tabcontent tab width question

  1. #1
    Join Date
    Mar 2009
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Tabcontent tab width question

    Tabcontent

    http://www.dynamicdrive.com/dynamici...tabcontent.htm

    I would like to spread the tabs across 100%. For example, if I have 4 tabs, I would like to make each ones width equal 25%. I have tried to do this with CSS, but it doesn't seem to work. Anyone know how to make it happen?

    Here is a link to a page with just the tab content box : http://beta.lpb.org/index.php/testarea/

    Thanks, in advance!
    Last edited by blaiseymae; 03-13-2009 at 12:13 AM. Reason: adding a link

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

    Default

    In CSS, adding a width to inline elements such as SPAN or A will have no effect. What you can do is either use DIVs that are floated (ie: float: left) to create each tab, or A elements with display:block and float:left. There should be plenty of examples on the web on how to do this...
    DD Admin

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
  •