web design training - layers
Request a callback

We'll call during UK business hours

Name:
Number:
0207 987 3777

Forum home » Delegate support and help forum » Dreamweaver Training and help » web design training - Layers

web design training - Layers

resolvedResolved · Low Priority · Version Standard

Fri 16 Mar 2007, 22:52 replyReply Delegate Gavin said...

Gavin has attended:
Dreamweaver 8 Introduction course
Dreamweaver 8 Intermediate course

Layers

How do i add named tabs to the layers?

For upcoming training course dates see: Pricing & availability

Wed 21 Mar 2007, 09:18 replyReply Trainer Rich said...

RE: Layers

Hi Gavin,

Not quite sure what you mean by 'named tabs'. Could you show me an example URL of where one exists?

If you're talking about a layer with a tab-style heading, one way might be to have a DIV tag as the first thing inside your layer, but assign a CSS class to the DIV with the same background colour as your normal background colour (eg. layer is blue, background of whole page is white, so make the DIV white background too). Then have a SPAN tag around the text, with CSS background same as layer, in this case blue. This will appear as a tab. You may need to add graphics or clever CSS colours, like this person's example. Also see this example.

Please elaborate and I'll try to help further. Otherwise you're welcome to mark this question as resolved.

Good luck.

Regards, Rich

Mon 26 Mar 2007, 16:02 replyReply Delegate Gavin said...

RE: Layers

like yahoo has the sections where

In the News, World, Local and Video tabs are....how do they do this?

Tue 27 Mar 2007, 11:44 replyReply Trainer Rich said...

RE: Layers

Gavin,

I imagine this would be an advanced bit of CSS and JavaScript.

One way to achieve this is to have 3 layers on top of each other (with two of them initially invisible). Then when a visitor clicks on one of the tabs, javascript is called to turn all layers to invisible, then set the appropriate layer to visible. At the same time, the javascript code would change the CSS of each tab to an 'off' class, and then the appropriate tab (one just clicked) to an 'on' class.

Dreamweaver can do the behaviour of turning on/off layer visibility, but you may need to program in the changing of CSS classes. It's not too difficult though.

I'm sure Yahoo has a much more complicated bit of scripting.

I've sent you an example HTML file via e-mail to show you how it can be done.

Regards, Rich

 

Dreamweaver tip:

Testing a site

When developing a site, you have to cater to the widest possible audience allowing for users with different browsers and display settings.
Test pages to see how they look with:

- different display resolutions
- browser with graphics turned off
- many different browsers not just IE
- if possible different operating systems.

View all Dreamweaver hints and tips



MS Project training
Course rating:
4.8 stars - based on 5149 reviews
Microsoft Certified Partner Institute of Leadership and Management - Certified Courses Learning and Performance Institute - Accredited Training Provider Security Seal verified by visa, mastercard securecard

Connect with us: Facebook · Twitter · Google+ · LinkedIn · Pinterest