In facebook when user makes browser size big, facebook’s blue top bar adjusts itself and keeps its contents in middle. I want to apply this thing in my webPage as well. Anyone has any idea how to do that using CSS and HTML. I am quite new in this. Please help me. Thanks in advance.
In facebook when user makes browser size big, facebook’s blue top bar adjusts itself
Share
a block element such as a
divwill be as wide as possible by default. Give that a background color, use CSS to settext-align:centeror give a child element a fixed width and amargin:0 autoto center it within the edge to edge block element.See example here: http://jsbin.com/ufemim