hi,
Is it possible to adjust the text size acclording to the page size in html? actually i have a webpage where i output the value of some command. the output may differ from time to time. now i want that if my output is long it should adjust the text size such that the user when viewing doesn't have to use the vertical scroll bar? is it possible? any help will be appreciated.
carobee 0 Posting Whiz in Training
Recommended Answers
Jump to Postuse java script.
check tha size of output and accordingly adjust the element.Styel.Font property through javascript.
Jump to Postfirst u need to make a default value for total character ( example $c = 100 depend on your layout )
then u can check total character in your output with php,$total = strlen($your_output);
if($total > $c){
use smaller style
}else{
use normal style
}
All 5 Replies
DangerDev 107 Posting Pro in Training
carobee 0 Posting Whiz in Training
Suetan 1 Junior Poster in Training
rudevils 0 Junior Poster in Training
Troy III 272 Posting Pro
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.