One for the left one for the right.
Sliding door css technique.
This method provides the following advantages.
Enter semi graphical tabs using the sliding door technique.
Only one tab image is used less download time.
Beautifully crafted truly flexible interface components which expand and contract with the size of the text can be created if we use two separate background images.
Tabs that use real text are likely to be more semantically correct.
The sliding door technique basically uses two images stacked up next to each other.
The following method uses this xhtml code.
The sliding doors technique section3.
Which means the important part will be the background image position.
Introduced by douglas bowman to customize your css menu writer menus.
Sliding doors of css part i introduced a new technique for creating visually stunning interface elements with simple text based semantic markup.
Think of these two images as sliding doors that complete one doorway.
The doors slide together and overlap more to fill a narrow space or slide apart and overlap less to fill a wider space as the diagram below shows.
The concept of the sliding door is to use a background image for the buttons in a navigation menu.
With css menu writer implementing this.
If you haven t read part i yet you should read it now.
Tab text can be resized to fit viewer s comfort.
We use the background image property because it hides the overflow and only shows the width specified and the other image slides over it to define the other end.
The link itself will hold another part of it.
One image is long over which the text is laid and the other image closes the other side.
Tabs themselves resize to fit the text.
This solution recipe shows you how to use the sliding doors technique.
In part ii we ll push the technique even further.
Using the sliding door technique with css menu writer.