Ur_Mom
Fully [H]
- Joined
- May 15, 2006
- Messages
- 20,648
Quick question, hopefully it's easy.
I am making a Wordpress theme. I originally had it at 1200px wide, but they want it to be dynamic (she uses a 1280 wide screen, I use a 1600 wide) and full screen.
My problem is that I have an image to the left, with text on the right. When I go to resize the screen to smaller resolutions, the text moves onto the picture, rather than the thing resizing.
Here is my code for the relevant part:
Is there a way to get it to size correctly? I had the background color separate, but I want to be able to resize the image height without having the yellow background staying the same height...
Thanks!
I am making a Wordpress theme. I originally had it at 1200px wide, but they want it to be dynamic (she uses a 1280 wide screen, I use a 1600 wide) and full screen.
My problem is that I have an image to the left, with text on the right. When I go to resize the screen to smaller resolutions, the text moves onto the picture, rather than the thing resizing.
Here is my code for the relevant part:
Code:
<div>
<span style="float: left; background: url('/wp-content/uploads/2015/08/home.jpg'); background-color: #FDF6B5; width: 100%; height: auto; background-repeat: no-repeat;">
<span style="float: right; width: 14%;">
<h2 style="text-align: left;"><b>OUR STRATEGY</b></h2>
<div style="text-align: left; font-size: 90%;">Lots of text goes here... And more ... And more... .</div>
</span>
</span>
</div>
Is there a way to get it to size correctly? I had the background color separate, but I want to be able to resize the image height without having the yellow background staying the same height...
Thanks!