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
Programming Q&A
Container / header help [css]
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="Nehalem" data-source="post: 260190" data-attributes="member: 37120"><p>So you're trying to get a title to that 'box'? That's easy.</p><p>Let's say you've a box, written in pure CSS, no images at all.</p><p>[CODE].box {</p><p> background-color: #FFF;</p><p> border-radius: 3px;</p><p> padding: 10px;</p><p> width: 200px;</p><p>}[/CODE]</p><p></p><p>Now, all you want is to add a title to that box, maybe with a coolish background color.</p><p>[CODE].title {</p><p> background-color: #F00;</p><p> color: #FFF;</p><p> padding: 10px;</p><p> font-weight: bold;</p><p> border-radius: 3px;</p><p> margin-bottom: 10px;</p><p>}[/CODE]</p><p></p><p>And the HTML output will be:</p><p>[HTML]<div class="box"></p><p> <div class="title">Title/Header Here</div></p><p> And some content text here.</p><p></div>[/HTML]</p><p></p><p>I hope that helps you out, since you'll have to do something similar to that.</p></blockquote><p></p>
[QUOTE="Nehalem, post: 260190, member: 37120"] So you're trying to get a title to that 'box'? That's easy. Let's say you've a box, written in pure CSS, no images at all. [CODE].box { background-color: #FFF; border-radius: 3px; padding: 10px; width: 200px; }[/CODE] Now, all you want is to add a title to that box, maybe with a coolish background color. [CODE].title { background-color: #F00; color: #FFF; padding: 10px; font-weight: bold; border-radius: 3px; margin-bottom: 10px; }[/CODE] And the HTML output will be: [HTML]<div class="box"> <div class="title">Title/Header Here</div> And some content text here. </div>[/HTML] I hope that helps you out, since you'll have to do something similar to that. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Software Development
Programming
Programming Q&A
Container / header help [css]
Top