Posted on 2011-04-19
Im still very early in learning CSS and I need to develop a Tab style menu option.
I can design the tab nicely by putting 3 divs in (1 for left side slant of tab, 1 with the background set as grey, and the last for the right side of the tab). What Im wondering is it is possible to put it all in one div, so to call it all I just need to put the text in, so for example:-
<div class="tabStyle">Tab Text</div>
And it automatically puts in the left slant, the right slant, and fills the middle in with whatever colour I want?
Thanks in advance for any assistance.