Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
MyTabs - How to get style like this?
#12
(2019-07-01, 05:35 AM)makpaolo Wrote: Code looks like: https://i.gyazo.com/9069e28fb78b25bd1edd...1df2ee.png

I am wondering how to make the 2 tabs stretch to fit, not really design. I can work with design, but no idea how to make it work with stretching them both out.

As far as the flex goes, what do I put in for TAB 1 and TAB 2? Isnt it supposed to be a variable?

Disregard the "flex" code for MyTabs. It is not used.


padding: 3px 5px 3px 5px;

Use the 'padding' call to stretch out the TABs. 

Follow this procedure:

Example: padding: 10px 5px 15px 20px;
top padding is 10px  right padding is 5px  bottom padding is 15px  left padding is 20px

Experiment with different numbers until you get the desired effect.
I'm Serpius and You're Not    ¯\_(ツ)_/¯
[Image: y3xr3cj5]
Reply


Messages In This Thread
RE: MyTabs - How to get style like this? - by Serpius - 2019-07-01, 10:45 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)