Change the css file loaded after the resolution
hi,
I would like to modify the css file loaded after the resolution of the visitor.
I already found her:
Code:
if ((screen. width> = 1900) & & (screen. height> = 1200))
(
)
My problem is that I can not implement the html (<link href=""/>) between the brackets.
Thank you in advance
Re: Change the css file loaded after the resolution
HTML
Code:
<link href= "ton/style/par/defaut.css" rel= "stylesheet" id= "style" />
JavaScript
Code:
document. getElementById ( 'style'). href = 'path / to / stylsheet.css';
Re: Change the css file loaded after the resolution
Thank you very much!
That is to change the size of certain images. the JS disabled make any less harmonious but not dramatic.
I will see if the precise size is recovered each time.
thank you again.
Re: Change the css file loaded after the resolution
Quote:
My problem is that I can not implement the html (<link href=""/>) between the brackets.
You can put a width and height as a% to your images ...