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
[HTML & CSS] Help!
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="Savallusion" data-source="post: 239220" data-attributes="member: 470"><p>There's a few ways to approach this. You could make a seperate box such as this;</p><p></p><p>.line-box {</p><p>background-color: transparent;</p><p>width: 100%;</p><p>height: 10px;</p><p>border-bottom: 1px solid red;</p><p>}</p><p></p><p>Then comes a box for the image/whatever else you want in it.</p><p>.overline-box {</p><p>background-color: red;</p><p>width:100px;</p><p>height:100px;</p><p>margin-top: 1%; //Play around till it fits onto the line as you want it</p><p>overflow: hidden;</p><p>}</p><p></p><p>At least something around those parts should work.</p><p>The other way is to create a background image that fits the sizes you want, but that wouldn't be responsive to all screen resolutions.</p><p>Let me know if it works.</p></blockquote><p></p>
[QUOTE="Savallusion, post: 239220, member: 470"] There's a few ways to approach this. You could make a seperate box such as this; .line-box { background-color: transparent; width: 100%; height: 10px; border-bottom: 1px solid red; } Then comes a box for the image/whatever else you want in it. .overline-box { background-color: red; width:100px; height:100px; margin-top: 1%; //Play around till it fits onto the line as you want it overflow: hidden; } At least something around those parts should work. The other way is to create a background image that fits the sizes you want, but that wouldn't be responsive to all screen resolutions. Let me know if it works. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Software Development
Programming
Programming Q&A
[HTML & CSS] Help!
Top