I have recently created this WordPress site and have used pixels and margins to create the layout of the two semi-transparent content boxes. However, as I'm sure those more experienced than me are aware this is not at all responsive and not very cross browser friendly either! So I have been advised to swap to percentages rather than pixels but can't work out where to start with my existing CSS!
Will I need to make a layout with 5 columns to achieve this?
Is there an easier way?
Here is a link to my existing stylesheet
Any help would be greatly appreciated, or if I've forgotten to pass on some required information please just let me know!
Simplest way to do this:
Find the widest element. It's width, XXXpx
, is going to be your new 100%
.
Find every other element with a px
value, YYYpx
. It's width is going to now be (YYY/XXX * 100)px
.
Visually go over your site and make sure everything looks right. Not all styles are meant to be percentage based, so you will need to revert a few here and there.