CSS Float attribute not rendering properly
-
So its been almost 8 hours and I’ve searched literally every forum before posting this question. I give up!!
I was asked to recreate the “look” of a webpage http://www.conceptspace.jp/news.html <a/> my friend found and recreate it on a page on his site http://n3-art-lab.com/?page_id=283 .
I looked at the code using firebug and did my best to recreate the CSS in the CSS Stylesheet Editor and the <div> tags in the body of the post on my wordpress page.
Can someone please help me float the image to the right of the text?
I would like the image and text to look like this page: http://www.conceptspace.jp/news.html <a/>
Here is what my CSS looks like:
#main { margin-left: auto !important; margin-right: auto !important; width: 620px !important; } .newsblock { border-top: 1px solid #CCCCCC !important; float: left !important; margin-bottom: 15px !important; width: 605px !important; } .newsblock .photo { float: right !important; overflow: hidden !important; width: 210px !important; } .newsblock .photo img { border: 1px solid #CCCCCC !important; } #main p { float: left !important; width: 390px !important; margin-bottom: 1.6em !important; }Here is what the text on my page looks like with the “text” option selected:
<code> <div id="main"> <div class="newsblock"> <span class="photo"> <img src="http://n3-art-lab.com/wp-content/uploads/2014/02/resized-test-200x280.jpg" alt="resized test" width="200" height="280" /> </span> <p> <strong> This is a test of the text. I'm not sure why this is not working. Its been almost 8 hours now. </strong> </p> <p> This is also more test text which will be a little long then the previous text to test the CSS formatting. </p> </div> <div class="newsblock"> <p> tsi is afa fsaf asd fs asdf a fsdf afasd fas fa sdfs df sdf asf </p> </div> </div> </code>
The topic ‘CSS Float attribute not rendering properly’ is closed to new replies.