I added some div tags to create two columns in the wordpress post. Here is the code I used:
#container {
width:100%;
}
#one {
width:50%;
float:left;
}
#two {
width:50%;
float:right;
}
I added the code to my style.css file.
When viewed on my webpage, everything looks good. However, when viewed on mobile devices, this does not look good. The code below is what I added to the post:
<div id="container">
<div id="one">content here</div>
<div id="two">content here</div>
</div>
What I would like to do is stack divs vertically when viewed on a mobile device. Is there an easy way to do this for someone with limited coding experience?
thank
source
share