www.webdeveloper.com
Results 1 to 2 of 2

Thread: dynamic tabs

  1. #1
    Join Date
    May 2008
    Posts
    9

    Question dynamic tabs

    Hey,

    I'm populating a site using php/mysql and a system of templates and serialized variable strings, the outputted html code being a compilation of the two.

    Anyway - I've run into a problem. I'm trying to build a tab subnavigation with different types of tabs being different templates (a video tab, a text tab, an image thumbnail tab...). Due to the way my php works the templates are outputted sequentially. ei:

    HTML Code:
    <div style="text"> 
    	text template html + user variables
    </div>
    
    
    <div style="tab"> 
    	tab template html + user variables
    </div>
    
    
    <div style="tab"> 
    	tab template html + user variables
    </div>
    
    
    <div style="tab"> 
    	tab template html + user variables
    </div>
    This means I can't use the classic list method as the tabs can't be mixed together (if you know what I mean) and I don't much feel like rewriting my php compiler just for this special case.

    I'm been trying a combination of floats (for the tab link divs) and absolute positioning (for the content divs), but this just seems kind of dodgy in today's browserscape, and barely works.

    If anybody knows a cool trick for doing tabs like this I'd really appreciate it.

    cheers

    nic

  2. #2
    Join Date
    Feb 2003
    Location
    Michigan, USA
    Posts
    5,773

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles