0

I am trying to understand the CSS specifications on http://www.dynamicdrive.com/style/csslibrary/item/matt_black_tabs/.

I tried to understand what difference and why put those properties just at the li and the a elements. What if the display was inline or block? I have tried to close some styles to see how it looks and I can't understand it.

Why is the display on the li and a elements set to inline and block? What would happen without those specifications?

0

1 Answer 1

2

The display property tells what style you want your object arranged. When you use block style it displays it like paragraphs and headers. Inline is default and has no line break before or after it. For more information on display go to http://www.htmldog.com/guides/cssadvanced/display/

Sign up to request clarification or add additional context in comments.

4 Comments

Though I'm NOT the downvoter, still since you have put a w3schools link, did u take a look at w3fools ?
I never knew W3schools is a bad site, what are some better sources?
HTMLDog, Tizag are much better than W3Schools.
@DrinkJavaCodeJava We've collected some other ressources over there: stackoverflow.com/questions/4744906/…

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.