Streaming live at 10am (PST)

Problem with Tabs with margin


#1

Hi all webflower,

I have problem setting margin to my tabs and remain it in one line.....I set the individual tab to 33.333% so it will take up the full space of the column, but whenever I add margin it start to go off into two lines....can someone tell me what I had done wrong?

Thank you!


Here is my public share link: LINK
(how to access public share link)


#2

Margins and padding values are additional to your elements' dimensions. If you want an element to be 33,33, make sure dimension+margins+borders+paddings equal 33,33%.


This set of rules is called the CSS box-model


Also give your elements display:inline-box or inline so

they stack nicely.


#3

This is great! thank you!


#4

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.