Jump to content


Photo
- - - - -

How Do I Edit Element In [Pl_Tab]


Best Answer x69chen , 03 December 2012 - 10:22 PM

You can but its going to be a pain! :D

 

You will need to use CSS pseudo classes.

 

Read this article for more information - http://css-tricks.co...lass-selectors/

Thanks, I solved :)

 

Thanks for helping

Go to the full post


  • Please log in to reply
7 replies to this topic

#1 x69chen

x69chen

    Advanced Member

  • Members
  • 62 posts
  • Framework Version:Pro
  • Country: Country Flag

Posted 02 December 2012 - 11:41 PM

I use the tab code which provide in the PgaeLine/tool.

 

How could I custom the CSS code for each part?

 

like, I want to make each tab different color,

and I also make a table inside the content of the tab, and I want to edit their background as well.

 

which code could I use? I tried ".nav-tabs li" but it seems does not work

 

Please help me,

 

Thanks



#2 Rob

Rob

    One Smart Egg

  • Moderators
  • 9,338 posts
  • LocationEast Coast, USA
  • Framework Version:The Latest, of course
  • Country: Country Flag

Posted 02 December 2012 - 11:47 PM

You can wrap the element in a unique class, then apply CSS to that using custom code.

 

Are you familiar with CSS?



#3 x69chen

x69chen

    Advanced Member

  • Members
  • 62 posts
  • Framework Version:Pro
  • Country: Country Flag

Posted 02 December 2012 - 11:56 PM


You can wrap the element in a unique class, then apply CSS to that using custom code.

 

Are you familiar with CSS?

I am not sure lol ,

 

I found out I could use ".nav-tabs li.active a {background:red;}" to change the color of the tab header, but it not looks good.

 

and also I want different color of each tab header, so I may need to give an id to each one,

so I tried this "[pl_tabtitle active="yes" number="1"] <div id'"e001"> title1 </div> [/pl_tabtitle]"

but when I try to directly edit "#e001", it does not work

 

 

btw, is that possible that I use the buttons from the PageLine/tool for each header of the tab? they looks perfect.

 

Thanks

 

 


#4 Danny

Danny

    Ninja

  • Moderators
  • 7,481 posts
  • LocationManchester, UK
  • Country: Country Flag

Posted 03 December 2012 - 09:33 AM

You can but its going to be a pain! :D

 

You will need to use CSS pseudo classes.

 

Read this article for more information - 

Please Login or Register to see this Hidden Content



#5 x69chen

x69chen

    Advanced Member

  • Members
  • 62 posts
  • Framework Version:Pro
  • Country: Country Flag

Posted 03 December 2012 - 09:26 PM

You can but its going to be a pain! :D

 

You will need to use CSS pseudo classes.

 

Read this article for more information - 

Please Login or Register to see this Hidden Content

Hi Thanks for helping,

 

I know the hover, visited things.

But here I want each tab header a different color, I found the only difference between each header <li> is <href="#num">

it's not an id or a class, so I may could not use the regular way to target them

 

So is there any other ways to do it?



#6 x69chen

x69chen

    Advanced Member

  • Members
  • 62 posts
  • Framework Version:Pro
  • Country: Country Flag

Posted 03 December 2012 - 10:22 PM   Best Answer

You can but its going to be a pain! :D

 

You will need to use CSS pseudo classes.

 

Read this article for more information - 

Please Login or Register to see this Hidden Content

Thanks, I solved :)

 

Thanks for helping



#7 James B

James B

    Advocate

  • Moderators
  • 2,417 posts
  • LocationSurrey - UK
  • Country: Country Flag

Posted 03 December 2012 - 10:33 PM

Ok the only way i found to do it is to copy/paste in the code direct from bootstrap and add a class to each li element that you can color with css. I see you've just managed to resolve, but i'll paste in case anyone else is looking for an answer.

 

So below i've copied the code from bootstrap and added 'tab2,3,4 etc' to each li element. Then saved the paste and added the css below.

 

Please Login or Register to see this Hidden Content

Css for tabs, obviously change color value to your own hex value.

Please Login or Register to see this Hidden Content



#8 x69chen

x69chen

    Advanced Member

  • Members
  • 62 posts
  • Framework Version:Pro
  • Country: Country Flag

Posted 03 December 2012 - 11:56 PM

 

Ok the only way i found to do it is to copy/paste in the code direct from bootstrap and add a class to each li element that you can color with css. I see you've just managed to resolve, but i'll paste in case anyone else is looking for an answer.

 

So below i've copied the code from bootstrap and added 'tab2,3,4 etc' to each li element. Then saved the paste and added the css below.

 

Please Login or Register to see this Hidden Content

Css for tabs, obviously change color value to your own hex value.

Please Login or Register to see this Hidden Content

 

Thanks, I used "

.nav-tabs li:nth-child a{

  color:white;
  background-color:green;
}"
 
looks exactly good :)





Click to return to top of page in style!