|
Post by kaalidor on Feb 15, 2008 18:15:52 GMT -5
is there a way to know DisplayWidth ?
regards, pascal
|
|
|
Post by turbov21 on Feb 15, 2008 18:36:54 GMT -5
|
|
|
Post by kaalidor on Feb 15, 2008 19:05:34 GMT -5
thank's turbov21
Carl, can you add this instruction to the wishlist ?
|
|
|
Post by carlgundel on Feb 16, 2008 13:51:48 GMT -5
thank's turbov21 Carl, can you add this instruction to the wishlist ? Hmm. Convince me. Why does it need to be built in? Web pages usually deal with resizing by using CSS, or else they assume a certain minimum resolution. -Carl
|
|
rod
New Member
Posts: 40
|
Post by rod on Feb 16, 2008 14:34:01 GMT -5
If we wanted to stay "native" and pen a graphic response that suited the client browser, the client "area" would be good to know.
|
|
|
Post by carlgundel on Feb 16, 2008 15:39:16 GMT -5
If we wanted to stay "native" and pen a graphic response that suited the client browser, the client "area" would be good to know. Yes, but I have to balance how and when exactly to inject this javascript code into Run BASIC's HTML. I'm not going to rush into this sort of a feature. Perhaps it doesn't fit as a built-in capability. We'll see. -Carl
|
|
|
Post by kaalidor on Feb 17, 2008 8:50:30 GMT -5
with wide screen we can see resolutions from 800 to 1600 pixels and it will be good to know screen resolution to adapt the program ! here is an exemple of 800 width website resolution on 1600 pixels user screen resolution.
|
|
|
Post by Jerry Muelver on Feb 17, 2008 11:51:11 GMT -5
Why would you want that site displayed at 1600px anyway? It would look like a billboard. Page display in browsers can be handled already by CSS. Just use percents instead of pixels for WIDTH and HEIGHT measurement if you'd like your pages to fill your visitors' browser window, regardless of the visitor's chosen size. Here's a useful discussion on this topic from about 10 years ago.... allmyfaqs.net/faq.pl?AnySizeDesign
|
|
|
Post by carlgundel on Feb 17, 2008 13:58:07 GMT -5
Why would you want that site displayed at 1600px anyway? It would look like a billboard. Page display in browsers can be handled already by CSS. Just use percents instead of pixels for WIDTH and HEIGHT measurement if you'd like your pages to fill your visitors' browser window, regardless of the visitor's chosen size. I am inclined to agree with Jerry about this. -Carl
|
|
rod
New Member
Posts: 40
|
Post by rod on Feb 17, 2008 14:09:05 GMT -5
Ok its this BASIC to Run BASIC hurdle again. CSS seems compulsory I need to read Jerrys links. I also need to learn CSS. ;D
|
|
|
Post by carlgundel on Feb 17, 2008 14:24:34 GMT -5
Ok its this BASIC to Run BASIC hurdle again. CSS seems compulsory I need to read Jerrys links. I also need to learn CSS. ;D This is a tool for creating web apps. CSS is what people should use for that. -Carl
|
|
|
Post by kaalidor on Feb 17, 2008 15:45:54 GMT -5
what i want to say is addind the capability to adapt the content to the screen size : for exemple 3 items for a 800 pixels large screen : using percent and CSS the result will be : and what i want to do is put 7 item for a 1600 pixels... if i remember, css dont do that ! this is the reason i ask for display width instruction... regards, pascal
|
|
|
Post by Jerry Muelver on Feb 17, 2008 17:40:54 GMT -5
Use a fixed width for the page, let the user's browser show a horizontal scrollbar if the browser window is narrower than the page. Otherwise you are presenting different content to different users. For instance, the narrow-view user will think she has only six bottles to choose from , because that's all she sees, whereas the wide-view user can choose from 14 bottles. That doesn't seem fair, somehow. It's certainly not good marketing. The flaw here is not in the capabilities of the delivery system, or in the browser, or in the user's computer limitations. It's in the page-designer's mind. See allmyfaqs.net/faq.pl?Fix_the_wrong_problem for more information.
|
|
|
Post by carlgundel on Feb 17, 2008 18:34:06 GMT -5
Use a fixed width for the page, let the user's browser show a horizontal scrollbar if the browser window is narrower than the page. Otherwise you are presenting different content to different users. For instance, the narrow-view user will think she has only six bottles to choose from , because that's all she sees, whereas the wide-view user can choose from 14 bottles. That doesn't seem fair, somehow. It's certainly not good marketing. The flaw here is not in the capabilities of the delivery system, or in the browser, or in the user's computer limitations. It's in the page-designer's mind. See allmyfaqs.net/faq.pl?Fix_the_wrong_problem for more information. Isn't it also possible with CSS to have the items wrap so that there is a vertical scroll bar? Then as the browser is made wider or narrower the number of items displayed changes dynamically based on the width. -Carl
|
|
|
Post by Janet on Feb 17, 2008 23:42:24 GMT -5
I think you're looking for Float: Left CSSID #maincontainer, "{ Width:80%; Background-Color:#FFFFCC; Margin: 20px Auto; }" CSSID #frogbox, "{ Width: 100px; Height: 120px; Padding: 20px 20px 20px 20px; Text-Align: Center; Float: Left; }"
Cls Div maincontainer For i = 1 to 20 Div frogbox Html "<img src='http://runbasic.wikispaces.com/space/showimage/FrogGIF.gif'>" Print: Print "Frog #";Right$("0";i, 2) End Div Next i End Div
Wait
|
|