Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / NewStats: 3,153,227 members, 7,818,770 topics. Date: Monday, 06 May 2024 at 01:51 AM |
Nairaland Forum / Science/Technology / Webmasters / Please Help!!.. Content Of <div> Are Crawling Out Of The Div (429 Views)
Learn Web Div... Fast And Easy / Help: Google Is Not Crawling My Blog / Google Unveils Its Best Content Of 2017 (2) (3) (4)
Please Help!!.. Content Of <div> Are Crawling Out Of The Div by phililp(m): 1:23pm On Feb 21, 2017 |
dear webmasters.. am a newbie am having a problem with my <body> and a <div> element in the div i formated it like this <div id="main"> then i put some text here in the body of the div </div> then css #main { width: 1000px; height: 500px; background-color: #dee4f7; margin: 10px; text-align: center; padding: 20px; } the problem is; the text are crawling out of the div... thought there are supposed to break to the next line when there get to the end of the div |
Re: Please Help!!.. Content Of <div> Are Crawling Out Of The Div by OTRebirth: 4:22pm On Feb 21, 2017 |
Are they bot crawlers? . . . Ok, i suggest you use 100% in your width instead of 1000px because of mobile response web. IF the text is somehow long, probable an explanation, use height: auto; instead of a fixed height. On another note, why don't you change that #main to .main and use <div class='main'> instead of that. . . Bro, after you get yourself a gmx bike with that ur website, don't forget a niqqa. Peace |
Re: Please Help!!.. Content Of <div> Are Crawling Out Of The Div by donsheddy1(m): 4:24pm On Feb 21, 2017 |
Next time, you post your complete script. Now avoid using heights when working with css *in time you'll understand why Now just add this to your css float:left; Since i can't find your complete script here's a sample of what your code should look like HTML <!DOCTYPE html> CSS .wrapper { |
Re: Please Help!!.. Content Of <div> Are Crawling Out Of The Div by dokunbam(m): 8:27pm On Feb 21, 2017 |
The topic is very funny |
(1) (Reply)
We Are Looking For Expert Webinar Team Urgently / Graphic Designer Needed / Ultimate Guide To Withdraw Money Using The ATM
(Go Up)
Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health religion celebs tv-movies music-radio literature webmasters programming techmarket Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10) Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 20 |