Answer the question
In order to leave comments, you need to log in
How to include different html files depending on the width?
Started using Twitter Bootstrap css framework. There was such a question.
Let's say I have two files:
xs.html - html markup for devices with a small screen resolution (xs)
other.html - html markup for other devices
How, depending on the width, to include different html files or separate pieces of it?
Giving different content to different clients can alert search engines
Answer the question
In order to leave comments, you need to log in
In twbs, all markup for all devices goes in one html file
Giving different content to different clients can alert search engines
Make a condition with api.jquery.com/width
and push it into this condition
PS Are you sure that you started using Bootstrap correctly?
You should have one file, and the bootstrap grid itself will adapt to the device, depending on the markup. col-xs-12
that's all. You apparently did not fully understand the principles of layout on it, or I did not correctly understand the essence of the issue.
I don’t know how in Twitter Bootstrap - but in any case this is done through css, the thing is called "@media" - read css "@media" in the search engine - everything is simple and clear ... for example, in a separate css file - add "@"media screen and (min-width:1281px) { here are your parameters } , then another size - other parameters ...(without quotes "")
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question