Dear All,
I am learning how to create my own tab.I have at this site http://183.78.169.54/ct/tab1.html two images. Now I would like to know how to first have text over this image and make it clickable. Secondly how to make the first button to be on top and rest to be bottom of each other.
newbie14 0 Posting Pro
Recommended Answers
Jump to PostUse separate class for the current tab and set the highest 'z-index' property than the others. My example like below:
<html> <head> <style> .tab_button { background-image:url('dark.png'); float: left; position: relative; margin-right: -13px; /* depends on your image size */ width:143px; height:31px; line-height; 31px; /* give the same …
Jump to Postnewbie14
The 'z-index' will determine which layer is over and which layer is underneath. The highest value is top of the other (i.e., 3 is over 2, 1 and 2 is over 1), negative has the same affect reversely. So, you can handle easily by specifying the proper value for …
Jump to Postbackground: url('*.jpg')
and no-repeat 0 50%; /* the background-image for the cuurent tab */That for current opened tab background for showing user which tab is currently opening. If you don't want it, never mind.
Remove 'text-align: center' from my old example. Put the 'padding-left' and take the enough space …
Jump to PostThe "url('*.jpg')" means the path of your image, which the star '*' refers to the image name. 'no-repeat' says do not repeat the background-image. '0 50%' is the position of background-image, coordinate point (x, y), which points to 0 at x and 50% at y. This is not familiar with …
Jump to PostNo. I represent your image name as '*'. If your image name is 'background.jpg', the star '*' would has 'background'. It is nothing, not syntax nor value, just variable refers to your image name.
All 30 Replies
twiss 155 Veteran Poster
newbie14 0 Posting Pro
twiss 155 Veteran Poster
newbie14 0 Posting Pro
twiss 155 Veteran Poster
newbie14 0 Posting Pro
twiss 155 Veteran Poster
newbie14 0 Posting Pro
twiss 155 Veteran Poster
newbie14 0 Posting Pro
twiss 155 Veteran Poster
newbie14 0 Posting Pro
twiss 155 Veteran Poster
newbie14 0 Posting Pro
twiss 155 Veteran Poster
newbie14 0 Posting Pro
ko ko 97 Practically a Master Poster
newbie14 0 Posting Pro
ko ko 97 Practically a Master Poster
newbie14 0 Posting Pro
ko ko 97 Practically a Master Poster
newbie14 0 Posting Pro
ko ko 97 Practically a Master Poster
newbie14 0 Posting Pro
ko ko 97 Practically a Master Poster
reckey 0 Newbie Poster
newbie14 0 Posting Pro
matricol -8 Junior Poster in Training
twiss commented: Read the thread first, this is not what he meant. -2
newbie14 0 Posting Pro
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.