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.
Sliding door css technique.
Which means the important part will be the background image position.
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.
One image is long over which the text is laid and the other image closes the other side.
Tab text can be resized to fit viewer s comfort.
If you haven t read part i yet you should read it now.
The following method uses this xhtml code.
The sliding doors technique section3.
The sliding door technique basically uses two images stacked up next to each other.
I am using a span within a link in the list to hold a part of the image.
Only one tab image is used less download time.
Using the sliding door technique with css menu writer.
This solution recipe shows you how to use the sliding doors technique.
This technique uses two images one for the left cap while the other covers.
Think of these two images as sliding doors that complete one doorway.
Tabs that use real text are likely to be more semantically correct.
The concept of the sliding door is to use a background image for the buttons in a navigation menu.
One for the left one for the right.
Tabs themselves resize to fit the text.
Enter semi graphical tabs using the sliding door technique.
This method provides the following advantages.
With css menu writer implementing this.
In part ii we ll push the technique even further.
Sliding doors of css part i introduced a new technique for creating visually stunning interface elements with simple text based semantic markup.
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.