/    Sign up×
Community /Pin to ProfileBookmark

display table as the main page container

Hello everyone!

I do not understand the use of ‘display:table’ very well. Why a lot of pages use this feature as the main page container?

[code]
<div style=”display:table”>
<!– main page container –>
</div>
[/code]

Does it have something to do with responsive design?

Thank you very much!

to post a comment

1 Comments(s)

Copy linkTweet thisAlerts:
@jedaisoulDec 22.2014 — As no one else has answered your query, I'll give it a go...

"display:table" is a new setting in CSS3. It is described [url=http://www.w3schools.com/cssref/pr_class_display.asp]here[/url] as "Let the element behave like a <table> element", but why you would want to do so? Perhaps, as you say, it is to do with @media (media-specific) code to modify the behavior of an element to sometimes behave as a table, and otherwise not? That's all I can imagine it is for...
×

Success!

Help @hebrerillo spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.5,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...