Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

CSS CSS Layout Techniques Display Modes Table Display

PRZEMYSLAW MARKOWSKI
PRZEMYSLAW MARKOWSKI
12,591 Points

Initial width

What is the initial value of .main-logo, .main-nav, .main-nav li { width:....;}...? where do I get initial values from...?

2 Answers

James Ingmire
James Ingmire
11,901 Points

Don't really understand but the initial value is the default value, so it wont have a defined width etc if its a inline element, presume if block element would be 100% but if a logo or picture then would be the width of image or logo etc when saved. Might help? :(

PRZEMYSLAW MARKOWSKI
PRZEMYSLAW MARKOWSKI
12,591 Points

That's what I thought, just wasn't sure. Thanks anyway James.

Kevin Murphy
Kevin Murphy
24,380 Points

PRZEMYSLAW MARKOWSKI I agree that this could benefit from further explanation. I'm doing a review/reinforcement of CSS Layout Techniques and have the same question.

From google research I've learned that the default value is not the browser default (in all cases). It is usually dependent on the CSS spec but I have not found a handy reference on what each property's initial value is.

Here is a link that also shares the perspective that the 'initial' property is confusing while also offering up some clarifying details - Initial Property -- Stack Overflow

James Ingmire
James Ingmire
11,901 Points

Thanks for your input Kevin, will have a read.