setmoa Posted May 15, 2013 Share Posted May 15, 2013 Hi Please can anyone help, I have a green banner on the rightside of my website and I would like to put a black banner underneath this one. I have the black banner but it's in the right place as I've just copied the code from the green one. My problem is that I don't know how to get it so that the black banner is underneath the green one. Any help would be much appreciated - files attached. Thanks Ally treatments.html main.css Link to comment Share on other sites More sharing options...
newseed Posted May 15, 2013 Share Posted May 15, 2013 <div id="rightside"><h2>Download our price list</h2><br /><p>click here to find us</p></div><!--rightside--><div style="clear:both"></div><div id="rightside2"><h2>Download our price list</h2><br /><p>click here to find us</p></div><!--rightside2--><div style="clear:both"></div> Remove the first <div style="clear:both"></div> Link to comment Share on other sites More sharing options...
setmoa Posted May 15, 2013 Author Share Posted May 15, 2013 wow thank you that was so easy after all!!! I don't suppose you could explain in plain english what this is doing? Link to comment Share on other sites More sharing options...
newseed Posted May 16, 2013 Share Posted May 16, 2013 The clear: both is telling the page to clear everything on the left and right before displaying the next element (html tag). Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now