Menu
Forums
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Trending
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
Upgrades
Log in
Register
What's new
Search
Search
Search titles only
By:
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
Software Development
Programming
Tutorials
How to create a basic content container in HTML + CSS (Very Basic)
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="GarettM" data-source="post: 244463" data-attributes="member: 839"><p>Okay Folks Lets Brake Down the Code</p><p>[CODE].container { width: 900px; margin: 0 auto; }[/CODE]</p><p>[CODE].container[/CODE]</p><p>This is The class selector or class we are working with. This class works with the element tag</p><p>[CODE]class="container"[/CODE]</p><p>Know lets inspect the Margin code..</p><p>[CODE]</p><p>margin: ( The Space Between the Top Parent Element and The Child Element or Current Element tag ) ( The Space Between The Left i think Parent Element and the current element ) ( The Space Between The Bottom Parent Element and the child element ) ( The Space Between The right parent element and the child element );</p><p>[/CODE]</p><p>Know lets View an Example:</p><p>... FUCK IT!</p><p>[CODE]</p><p> margin: 2px auto; // 2px from top parent element, have browser center the element with auto, 2px from bottom parent element, have browser center the element with auto again!</p><p>[/CODE]</p><p></p><p>DID i MAKE any Sense?</p></blockquote><p></p>
[QUOTE="GarettM, post: 244463, member: 839"] Okay Folks Lets Brake Down the Code [CODE].container { width: 900px; margin: 0 auto; }[/CODE] [CODE].container[/CODE] This is The class selector or class we are working with. This class works with the element tag [CODE]class="container"[/CODE] Know lets inspect the Margin code.. [CODE] margin: ( The Space Between the Top Parent Element and The Child Element or Current Element tag ) ( The Space Between The Left i think Parent Element and the current element ) ( The Space Between The Bottom Parent Element and the child element ) ( The Space Between The right parent element and the child element ); [/CODE] Know lets View an Example: ... FUCK IT! [CODE] margin: 2px auto; // 2px from top parent element, have browser center the element with auto, 2px from bottom parent element, have browser center the element with auto again! [/CODE] DID i MAKE any Sense? [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Software Development
Programming
Tutorials
How to create a basic content container in HTML + CSS (Very Basic)
Top