I'm looking to set up my web presence for my bbs with web pages that detect mobile/tablet browsers and present web pages tailored to those type browsers by default. Has anyone explored this already so I'm not trying to reinvent the wheel so-to-speak?
I'm looking to set up my web presence for my bbs with web pages that detect mobile/tablet browsers and present web pages tailored to those type browsers by default. Has anyone explored this already so I'm not trying to reinvent the wheel so-to-speak?
I'm looking to set up my web presence for my bbs with web pages that detect mobile/tablet browsers and present web pages tailored to those type browsers by default. Has anyone explored this already so I'm not trying to reinvent the wheel so-to-speak?
Use responsive CSS3 to change size and layout of page elements based on viewport and @media declarations. This is called "responsive layout."
Don't use JavaScript. You'll have to do ten times as much coding with JavaScript as CSS3, it will be more error-prone, and it will slow down
page loading.
It may take an hour or two to really grok what the DOM is doing with
CSS3 @media statements. It's a lot easier than messing around with JS. I have built many, many websites without a single line of JavaScript that
look clean and scaled perfectly to whatever device is viewing.
You can also find free 'pure CSS3' responsive templates online that will speed you on your way.
Here is a good start:
Responsive Web Design - Media Queries https://www.w3schools.com/css/css_rwd_mediaqueries.asp
Responsive Web Design - The Viewport https://www.w3schools.com/css/css_rwd_viewport.asp
Viewport concepts https://developer.mozilla.org/en-US/docs/Web/CSS/Viewport_concepts
Fun With Viewport Units
https://css-tricks.com/fun-viewport-units/
Here is another link with a more in-depth look at media query techniques
for responsive page layout.
A Complete Guide to CSS Media Queries https://css-tricks.com/a-complete-guide-to-css-media-queries/
ecWebv4 (for Synchronet) uses bootstrap to achieve this. You can see it in use at web.synchro.net
Sysop: | Nelgin |
---|---|
Location: | Plano, TX |
Users: | 606 |
Nodes: | 10 (1 / 9) |
Uptime: | 137:43:27 |
Calls: | 9,609 |
Calls today: | 4 |
Files: | 16,059 |
Messages: | 1,062,043 |
Posted today: | 7 |