Dark_Angel
Member
Hey ya'll,
Back again, working on the same thing - mod list --> integrated into each node.
So I got everything working right on most browsers and resolutions.. but now I am having issues with mobile where my moderator list seems to break the page over into the background div. I have tried over and over to add @media to it so the div containing the list does not display under a fixed width, yet it still does. I used the same code for the thead that labels everything to not be displayed on mobile, and it works. This has made me extremely confused as the code is not wrong, yet for some reason it does not register anything I write under @media for this particular div.
HTML:
Thanks for any help in advance!
Back again, working on the same thing - mod list --> integrated into each node.
So I got everything working right on most browsers and resolutions.. but now I am having issues with mobile where my moderator list seems to break the page over into the background div. I have tried over and over to add @media to it so the div containing the list does not display under a fixed width, yet it still does. I used the same code for the thead that labels everything to not be displayed on mobile, and it works. This has made me extremely confused as the code is not wrong, yet for some reason it does not register anything I write under @media for this particular div.
HTML:
CSS:<div class="modlist">
<xf:foreach loop="$node.Moderators" value="$moderator">
<li><xf:username user="{$moderator.User}" defaultname="{$moderator.User.username}" style="font-size:14px;" /></li>
</xf:foreach>
</div>
li.modlist, div.modlist
{
@media only screen
and (min-device-width : 320px)
and (max-device-width : 480px){
.modlist{
display: none;
} }
}
.modlist
{
display: table-cell;
width:10%;
text-align: center;
padding-right:30px;
vertical-align: middle;
white-space: nowrap;
}
Thanks for any help in advance!