/t5/coldfusion-discussions/make-page-expand-depending-screen-size/m-p/925299#M85014May 09, 2008
May 09, 2008
Copy link to clipboard
Copied
You will need to define your width as a percentage, for
example <table width="70%"> or define it within your style
sheet, which is most likely the preferred way.
/t5/coldfusion-discussions/make-page-expand-depending-screen-size/m-p/925300#M85015May 09, 2008
May 09, 2008
Copy link to clipboard
Copied
while correct, that does not quiet cover expanding the
content
vertically, does it? most 'vertical things' in css are rather
tricky,
that's why i recommend getting a good book. you can, of
course, get all
the info from various blogs and websites, but you still may
want to have
that book as an offline reference...
For vertical, you can add the height attribute using a
percentage in addition to the width. You just have to make sure
that you dont have any constraints around it limiting its
size.
/t5/coldfusion-discussions/make-page-expand-depending-screen-size/m-p/925302#M85017May 09, 2008
May 09, 2008
Copy link to clipboard
Copied
LATEST
Theoretically, you could use JavaScript to attempt to
determine the viewer's screen resolution. This will work for some
people, but is considered pretty much obsolete practice nowadays.
Dictating the width of your pages as a percentage will work for the
most part, but is only a half step better than the JavaScript
approach.
The best solution, as suggested, is to learn effective CSS
coding practices.