I am using this contribution (DD Color Tab II) and want to center the tabs (instead of left align). What changes do I need to make? Please look at example page - http://www.nightstay.us/footer.html
Thanks for your help!
Manjeet
I am using this contribution (DD Color Tab II) and want to center the tabs (instead of left align). What changes do I need to make? Please look at example page - http://www.nightstay.us/footer.html
Thanks for your help!
Manjeet
Hi there manjeet,
and a warm welcome to these foums.
Firstly, to get IE out of Quirks Mode always use a full DOCTYPE...
...instead of...Code:<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
Secondly change this in your stylesheet...Code:<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
...to this...Code:#invertedtabs { margin-left: 4px; padding: 0; width: 100%; background: transparent; voice-family: "\"}\""; voice-family: inherit; padding-left: 5px; }
cootheadCode:#invertedtabs { margin:auto; width: 510px; background-color: transparent; voice-family: "\"}\""; voice-family: inherit; }
Thanks coothead, it worked like a charm! I knew there were still good people on this earth. :-) Thanks for the warm welcome!
I was playing around with "#invertedtabs ul" section after seeing other contributions, and had put "text-align:center" directive and was hoping for it to work, like a switch - left/center/right! Obviously, it has no value.
Thanks again!
Manjeet
No problem, you're welcome.
Next time,
Warning: Please post all Dynamic Drive Script Related Questions here
Peter - alotofstuffhere[dot]com - Email Me - Donate via PayPal - Got spare hardware? Donate 'em to me :) Just send me a PM.
Currently: enjoying the early holidays :)Read before posting: FAQ | What you CAN'T do with JavaScript | Form Rules | Thread Title Naming Guide
Thanks so much for the CSS on centering the tabs! The DD Color Tab II tabs look terrific on the site I had built (Balletpacifica.org). I applied the new definition for #invertedtabs and it works great!
Mari
What would you do to make it align right?
change this...Originally Posted by gfin19
...to this...Code:#invertedtabs { margin:auto; width: 510px; background-color: transparent; voice-family: "\"}\""; voice-family: inherit; }
cootheadCode:#invertedtabs { float:right; width: 510px; background-color: transparent; voice-family: "\"}\""; voice-family: inherit; }
I should have thought of that, thanks again.
Bookmarks