473,395 Members | 1,624 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

have issue in content when i write something in a div its goes out of tag

i have a issue when i write something on a div its look nice ...but when i did ctrl + ctrl - its goes out

HTML:

Expand|Select|Wrap|Line Numbers
  1. <div class="nav_last">
  2. <div class="first_box">
  3.      <div class="img_box"><img src="http://www.w3schools.com/images/pulpit.jpg" alt="ssd"></div>
  4.          <div class="text_box"><p>jo bhi main o ye kehna cahu o ye barbaad kare alfaaz mere alfaaz mere o ye ye ye yeye </p>
  5.          <p>jo bhi main o ye kehna cahu o ye barbaad kare alfaaz mere alfaaz mere o ye ye ye yeye </p>
  6.          </div>
  7.     </div>
  8.  
  9.  
  10. CSS:
  11.  
  12. .nav_last{
  13.  
  14.  
  15. width:100%;
  16. height:400px;
  17. background-color: #e8ac31;  
  18. margin-top:20px;  
  19. text-align:center; 
  20. }
  21.  
  22.  
  23. .first_box {
  24.  
  25. width:241px;
  26. height:auto;
  27. background-color: rgba(0,0,0,0.4); 
  28. display:inline-block; 
  29. margin-top:20px;
  30. margin-left:10px;   
  31.  
  32. }
  33.  
  34. .img_box {
  35.  
  36. width: 241px;
  37. height:180px;
  38. margin-top:20px; 
  39.  
  40.  
  41. }
  42.  
  43. .first_box > .img_box > img {
  44.  
  45. width:120px;
  46. height:120px;  
  47. border-radius:50%; 
  48.  
  49. }
  50.  
  51. .text_box {
  52.  
  53. width:241px;
  54. height:170px;
  55. font-size:11px;
  56. line-height:2;  
  57. font-family:Verdana; 
  58.  
  59. }
  60.  
  61. .text_box > p {
  62.  
  63. height: auto;
  64.  color:#fff;
  65.  
  66. }
Aug 14 '14 #1
1 1086
Exequiel
288 256MB
Try to change your .nav_last, .first_box and .text_box with this codes.

Expand|Select|Wrap|Line Numbers
  1. .nav_last{
  2.     width:100%;
  3.     height:auto;
  4.     background-color: #e8ac31;  
  5.     margin-top:20px;  
  6.     text-align:center;
  7.     padding-top:20px;
  8.     padding-bottom:20px;
  9. }
  10.  
  11. .first_box {
  12.     width:241px;
  13.     height:auto;
  14.     background-color: rgba(0,0,0,0.4); 
  15.     display:inline-block; 
  16.     margin:auto 0px; 
  17.     padding:3px;
  18. }
  19.  
  20. .text_box {
  21.     width:241px;
  22.     height:auto;
  23.     font-size:11px;
  24.     line-height:2;  
  25.     font-family:Verdana; 
  26. }
  27.  
  28.  
Aug 15 '14 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Dotnetified | last post by:
Reposting after about 2 weeks of no response ... thanks if you can help... ---------------------------------------------------------------------------- -------------- To anyone who thinks they...
1
by: Peter Hansen | last post by:
Assume there is a given Non-Gui (console is the only interface) library (DLL under Win2000). Now I want to open a second (!) console out of this library/DLL and write something on it with printf()....
15
by: Viviana Vc | last post by:
How can I programatically do the equivalent of the following: cacls "C:\Program Files\test" /T /G Everyone:f ? Thanks, Viv
0
by: Supa Hoopsa | last post by:
I have an issue with a datagrid 'losing' it's contents when I add a tablestyle to it. I have one simple line: MyDataGrid.TableStyles.Add(MyTableStyle) When run in debug and put a break...
5
by: ajordan | last post by:
hello! i think i have a bug when i use parseFoat function: i have the following operation : parseFloat("10.664062") + parseFloat("10.664062") +parseFloat("10.664062"); the result of...
5
by: Paul Wilkinson | last post by:
How can I write a method that is called when an object goes out of scope? I've looked all over, so far I've only found discussions of how to write methods that don't = )
7
by: Simon | last post by:
Hi everyone, I'm wondering what you're supposed to do when you call a method that is required to perform some action but that action subsequently fails. More specifically, how do you get a...
1
by: maddog | last post by:
I have granted write permission to aspnet account for the direcotry on ther server (not a webshare folder). And there is an aspx page do this jobs: 1. get the customer's post data(ms-word...
0
by: Andy B | last post by:
How do you set the focus to an acordion pane content when the particular pane is opened? Same way with the header of the pane when the pane closes?
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.