Forgive my ignorance, but the answers have not yet become clear...
My page (with the Divs in question) looks like this:
(adsbygoogle = window.adsbygoogle || []). push({});
(adsbygoogle = window.adsbygoogle || []). push({});
=================================
I have a CSS with the following format:
/* -------------------------------------------- *
* Toolbar-web
*/
@media only screen and (min-width: 480px) {
. Toolbar-web {
margin-top: 10px;
margin-bottom: 15px;
border-bottom: 1px Solid #cccc;
border-top: 1px Solid #cccc;
background: #f4f4f4;
padding: 5px 10px 0px 10px;
}
. Toolbar-web:after {
content: ''';
display: table;
clear: Both;
}
.pager-no-toolbarweb {
margin-bottom: 10px;
}
.pager-no-toolbarweb ~ .pager-no-toolbarweb {
margin-top: 10px;
}
.toolbar-web,
.pagerweb {
font-family: "Open Sans", "Helvetica Neue", Verdana, Arial, Raleway, sans-serif;
color: #636363;
line-height: 30px;
font-size: 12px;
}
.toolbar-web label,
.pager-no-toolbarweb label {
font-weight: normal;
text-transform: uppercase;
}
}
/* -------------------------------------------- *
* Toolbar-wap
*/
@media only screen and (max-width: 479px) {
. Toolbar-wap {
margin-top: 10px;
margin-bottom: 15px;
border-bottom: 1px Solid #cccc;
border-top: 1px Solid #cccc;
background: #f4f4f4;
padding: 5px 10px 0px 10px;
}
. Toolbar-wap:after {
content: ''';
display: table;
clear: Both;
}
.pager-no-toolbarwap {
margin-bottom: 10px;
}
.pager-no-toolbarwap ~ .pager-no-toolbarwap {
margin-top: 10px;
}
.toolbar-wap,
.pagerwap {
font-family: "Open Sans", "Helvetica Neue", Verdana, Arial, Raleway, sans-serif;
color: #636363;
line-height: 30px;
font-size: 12px;
}
.toolbar-wap label,
.pager-no-toolbarwap label {
font-weight: normal;
text-transform: uppercase;
}
}
=================================
How to Hide Class Divs: "Toolbar-wap" and "Toolbar-web"
do with javascript
– Caique C.
Not what language you are using, but in PHP you can use
$_SERVER
and captureHTTP_USER_AGENT
, then just create aswitch
with each type setting the image.– Guilherme Lautert
cannot change content with CSS, but you can show/hide certain
<div>
s according to browser type, Bootstrap has these classes and you can take as an example: http://getbootstrap.com/css/#Responsive-Utilities-classes– Pedro Sanção
Welcome to Stack Overflow in English. To avoid UPPERCASE texts, but format them in an elegant way, I recommend reading http://answall.com/help/formatting
– Wallace Maxters
I believe this is what you want: http://foundation.zurb.com/docs/components/interchange.html, basically it makes a different AJAX request for different screen sizes.
– Tobias Mesquita
@re22 I put as answer and gave some guidance on how to use only Interchange in isolation.
– Tobias Mesquita
I’m sorry, but the answers are still unclear...
– Edenilson Silva