Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Mobile Device Trick Re: Mobile Device Trick

#55725
TheDoc
Member

It looks like you don’t particularly have a grasp of CSS yet.

You can be as specific as you want to. Maybe you want to remove images in the sidebar, but only on pages in a section called ‘poop’:

.poop #content #sidebar img { display: none; }

Maybe you only want the first image:

.poop #content #sidebar img:first-child {display: none; }

That way if you ever want to change it, you don’t need to edit multiple templates or HTML files, it’s all in the CSS.

Having said that – you can do whatever you want.