hi
is it possible to adjust the page width according to the output of the page so that the user doesn't have to scroll to see the end of the page?
carobee
0
Posting Whiz in Training
Recommended Answers
Jump to PostYou can possibly achieve this by creating a table and setting its width to 100%, this will allow more data to be shown across the page. You can do something like this:
$exampleOuput = "<table width=/"100%/">
<tr>
<td>
..The ouput code here..
</td>
</tr>
</table>";
echo $exampleOutput;If …
Jump to PostWhen displaying things such as large images or content, use a CSS stylesheet and set them to a percentage, instead of a static pixel width.
img { width: 40%; }
All 7 Replies
richie513
8
Junior Poster
carobee
0
Posting Whiz in Training
carobee
0
Posting Whiz in Training
fert
6
Newbie Poster
carobee
0
Posting Whiz in Training
nav33n
472
Purple hazed!
Team Colleague
Featured Poster
Suetan
1
Junior Poster in Training
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.