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
How to fix this CSS code?
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="Spydah" data-source="post: 464061" data-attributes="member: 8547"><p>To explain it in the best way I think it's to say that it's borderless and as soon it doesn't find anything beside it it'll drop the text underneath it.</p><p></p><p>This is what it looks like without the lines I drawed.</p><p><img src="https://i.imgur.com/UKHWSlH.png" alt="" class="fr-fic fr-dii fr-draggable " style="" /></p><p></p><p>The grey line is where I want it to be seperated and the white line is to show where the text has to go.</p><p></p><p>This is the .css</p><p>[CODE]@media (max-width: 767px) {</p><p> h3 {</p><p> text-align: center !important;</p><p> }</p><p></p><p> .pull-right {</p><p> float: none !important;</p><p> display: block !important;</p><p> }</p><p>}</p><p></p><p>.clr{</p><p> clear:both !important;</p><p>}</p><p></p><p>#main-block{</p><p> float:right !important;</p><p> display:block !important;</p><p> width:70% !important;</p><p> margin: auto !important;</p><p> border: 0px !important;</p><p> position: fixed !important;</p><p>}</p><p></p><p>#sidebar{</p><p> float:left !important;</p><p> width:20% !important;</p><p> height:20% !important;</p><p> text-align:center !important;</p><p>}</p><p>[/CODE]</p><p></p><p>Appreciate the help</p></blockquote><p></p>
[QUOTE="Spydah, post: 464061, member: 8547"] To explain it in the best way I think it's to say that it's borderless and as soon it doesn't find anything beside it it'll drop the text underneath it. This is what it looks like without the lines I drawed. [img]https://i.imgur.com/UKHWSlH.png[/img] The grey line is where I want it to be seperated and the white line is to show where the text has to go. This is the .css [CODE]@media (max-width: 767px) { h3 { text-align: center !important; } .pull-right { float: none !important; display: block !important; } } .clr{ clear:both !important; } #main-block{ float:right !important; display:block !important; width:70% !important; margin: auto !important; border: 0px !important; position: fixed !important; } #sidebar{ float:left !important; width:20% !important; height:20% !important; text-align:center !important; } [/CODE] Appreciate the help [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Software Development
Programming
Programming Q&A
How to fix this CSS code?
Top