I'd like to add some style to this drop-down.... rounded corners, space in between the sub-tabs and have the box fit the tabs tighter.  Thanks!

Views: 411

Reply to This

Replies to This Discussion

I've been looking for this as well.  Fingers crossed someone knows a method

Okay, so I just starting playing with code a few weeks ago...  I got this from code I found from soaringeagle on another forum, and adjusted it to this for my site...  before, it had shadows and all kinds of dicey stuff, anyhow, here you go...

#xg_navigation ul div.xg_subtab ul li a{border:1px solid #dbd4db!important;-moz-box-shadow:3px 4px 12px #dbd4db inset!important;-ms-box-shadow:3px 4px 12px #ccc inset!important;-o-box-shadow:3px 4px 12px #dbd4db inset!important;}

it's probably not the perfect code, but it's a start, and it works,  Change the color code (after the #) for what you need.  Also, make sure you choose all the colors you'd like in Appearance, Customize, Tab.

I hope someone will let me know how to round the corners and any other suggestions...

To round corners add border-radius: 10px; to your code and to space out the subtabs add margin-bottom: 8 px;

Awesome, thanks. I'm starting to figure this code out a bit.  Would you know how to decrease the width in the subtabs, so it hugs the word a bit better?

Thanks!

Here's what I'm using but yes, I'd like that right margin side to shrink in and *hug* the word as well.  Still looks a lot better.  Just adjust color and background subtab as needed.

#xg_navigation ul div.xg_subtab ul li a {color:#000000;background:#ffffff;border-radius: 10px}
#xg_navigation ul div.xg_subtab ul li a:hover {color:#000000;background:#ffffff;border-radius: 10px

Oops!  My code above is missing a } at the end of it.  Should read:

#xg_navigation ul div.xg_subtab ul li a {color:#000000;background:#ffffff;border-radius: 10px}
#xg_navigation ul div.xg_subtab ul li a:hover {color:#000000;background:#ffffff;border-radius: 10px}

try this edit the size at the bottom.

DIV#xg_navigation UL.xg_subtab{
  background-color: transparent!important;}
DIV#xg_navigation UL.xg_subtab a {
  text-align: center!important;
  margin: 0px!important;
  margin-bottom: 8px!important;
  padding: 0px!important;
  border: 1px solid #d2d2d2!important;
  border-radius: 5px 5px 5px 5px!important;
  -moz-border-radius: 5px 5px 5px 5px!important;;
  -webkit-border-radius: 5px 5px 5px 5px!important;
  width:165.4px!important;}

This is what I use, edited and added from George's code. You can see it on www.roleplaysocial.net

I'd provide a screenshot but I can't hover over the tabs and select screen capture at the same time.

DIV#xg_navigation UL.xg_subtab{
  background-color: #fff !important;}
DIV#xg_navigation UL.xg_subtab a {
  text-align: center!important;
  margin: 0px!important;
  margin-bottom: 2px!important;
  padding: 0px!important;
  border: 1px solid #000!important;
  border-radius: 5px 5px 5px 5px!important;
  -moz-border-radius: 5px 5px 5px 5px!important;;
  -webkit-border-radius: 5px 5px 5px 5px!important;
  width:215.4px!important;
box-shadow: 0px 2px 6px 0px #777;
-moz-box-shadow:  0px 2px 6px 0px #777;
-webkit-box-shadow:  0px 2px 6px 0px #777;}

#xg_navigation ul div.xg_subtab ul {
    width: 220.4px;
    padding: 4px !important;
box-shadow: 0px 2px 8px -2px #000;
-moz-box-shadow:  0px 2px 8px -2px #000;
-webkit-box-shadow:  0px 2px 8px -2px #000;
}

Did you try removing any recently-added code and see if it reverts back to normal?

Yep, it's the code.  It actually was a few codes back.  I wouldn't have thought that code would do that, but better I learn now than 20 more codes down the line.   Thanks

Oh really?  So very nice of them to let everyone know there's a problem out there...............#fail

That only happens to me when I'm adding code, publishing, and adding more code. Doesn't happen often though and only to me.

RSS

Latest Activity

Kos replied to Patrick Chappelle's discussion 'Show Me Your Ning 3.0 Site!' in the group The Sandbox
"ha!  No sooner do I post that and 1/2 of my CSS isn't showing. #fail  (LOL)  I…"
20 minutes ago
John Bizley replied to Patrick Chappelle's discussion 'Show Me Your Ning 3.0 Site!' in the group The Sandbox
"Hi Patrick, here is mine and it is fully open for viewing. I have still lots to do and it's…"
24 minutes ago
Skye replied to Tim's discussion 'Ning Slow Today?'
"Looks like I spoke too soon, a member stated she received a 500 error…"
57 minutes ago
Kos replied to Patrick Chappelle's discussion 'Show Me Your Ning 3.0 Site!' in the group The Sandbox
"I totally tore my 3.0 apart and began back all over again b/c I think we've all been…"
1 hour ago
Troy D. Bertrand replied to PeruCool's discussion 'Alternatives to Ning social network'
"Please forgive me Kim. I'm been bombarded by spammers. I got the new member awaiting approval…"
1 hour ago
Forbes. replied to Forbes.'s discussion 'Help! 500: Unexpected Error'
"Thanks,its okay."
1 hour ago
Kim Newberg aka imagesbykim replied to PeruCool's discussion 'Alternatives to Ning social network'
"Im waiting for approval on ex"
1 hour ago
Maythureinko favorited Eric Suesz's page Ning 3.0 Roadmap
2 hours ago

© 2013   Created by Ning.

Badges  |  Report an Issue  |  Terms of Service