html - Is it possible to have a table with a width of 100% but stop at 1920px? Due to monitor size? -
was curious because design images adjusted screen , set them cell backgrounds width of 100% when people adjust window size or monitor size different. image eaten window logo in cell still hover on image in desired position.
it works great think. have exact desired effect want 1 flaw. because 4k thing , monitor resolutions increase i'm going have spend more time making sure header image around 4000px wide fit screens.
my question is. in table width="100%" there way change width = 100% window size goes on 1920px size of 1 of images 100% stops?
i ask because project i'm working have logo floating on header image aligned in cell left whenever drag left of window out stays image get's eaten. can see here http://www.theroyaloaknonington.co.uk/beta/
sadly on monitor resolution width wider 1920 logo still flows off image on grey zone because image 1920px wide. wondering best way stop this?
check live example link few paragraphs up. , if monitor doesn't exceed 1920 fine if drag left side of window make size smaller see logo move. , sadly when it's extended wider 1920 logo goes on. want free stop @ end of image.
it is, , simple:
table { width: 100%; max-width: 1920px; }
for more complex requirements, need start looking @ @media
queries, can specify range of screen sizes individual styles apply to.
Comments
Post a Comment