text overflowing |
text overflowing |
Kaged |
May 4 2012, 08:55 AM
Post
#1
|
Group: Members Posts: 2 Joined: 4-May 12 Member No.: 17,050 |
hey, im new to web design and i have a problem.
in my school we use iMacs when i coded the website. when i try to view it on my PC at home. the website is different, some textbox move abit. but my main problem is that some text go out its div tag. and oh, it also differs from browser to browser. the site how do i fix that? This post has been edited by Kaged: May 4 2012, 08:56 AM |
pandy |
May 4 2012, 11:56 AM
Post
#2
|
🌟Computer says no🌟 Group: WDG Moderators Posts: 20,730 Joined: 9-August 06 Member No.: 6 |
Don't limit the height of boxes that contain text. It's enough to use a larger text size in the browser to break it (note, text size, not page zoom!). You can't know what text size your visitors prefer, what resolution they have, how big browser window - you can't know how big an area the text will occopy. If you limit both width and height of a text box the text has nowhere to go when it needs more room than the box provides, so it overflows.
|
Kaged |
May 4 2012, 09:45 PM
Post
#3
|
Group: Members Posts: 2 Joined: 4-May 12 Member No.: 17,050 |
ok. thanks for the advice. but, how do you do that?
|
pandy |
May 5 2012, 04:35 AM
Post
#4
|
🌟Computer says no🌟 Group: WDG Moderators Posts: 20,730 Joined: 9-August 06 Member No.: 6 |
Don't specify a height and the box will expand to fit the text.
|
Lo-Fi Version | Time is now: 18th April 2024 - 09:54 PM |