css - Full width html body on tablet -
basic question
how website width:100% on tablet devices.
there java-script options detect screen size , readjust css accordingly. if option accept that, surely html5/css3 there more elegant solution.
to elaborate:
i'm not worried mobile devices, because app detailed, mobile version has have simpler options.
the problem has come because tablets come in high definition. designing site max-width:998px fine in past, tablet full hd not display 100% width because greater 998px.
i have looked zoom, consensus it's not supported yet.
finally
should start designing pages fit max-width:1280px, , have forms/tables width:100%?
at moment i'm using http://getbootstrap.com/ , it's amazing, doesn't have tablet detection library. have classes different sized devices, it'd say, tablet=width 100%.
final note
in case it's unclear examples follow <body><div class="container">...</div></body>
i'm after .container
100% width on tablet.
i'm 100% 998px, might have increase 1200px, feedback on nice.
edit 1
i got vote broad. please elaborate because i've been searching weeks before posted. there little on how create full width tablet website. if want examples can create pages. problem many different resolutions. example, want have page or form account/contact details , have fit size tablet, on desktop if open page on 50 inch screen won't work if inputs width:percent. why limited max-width:998px, try fit desktops. tablets, despite resolution, small screens, , perfect full width.
if using bootstrap, has detection it.
go css , check comments, ull find like:
/* small devices (tablets, 768px , up) */ @media (min-width: @screen-sm-min) { ... }
it full-width default, containers have margins, nothing worry about, can override classes or make custom stylesheet
if want manually, full width tablet easy set container
div @ width:100%
my advice: custom margin on .container
on boostrap (and maybe cols well) have width template.
Comments
Post a Comment