Firstly, you are not right about your classes: "#wrapper photo" should be "# wrapper.photo". In addition, id cannot have spaces in them ("#wrapper head").
There are several ways to add the gap you desire. The easiest way is to add an addition to the image:
#wrapper .photo { float: left; padding-right: 10px }
I would also like to point out that the markup you use is very poor. Headings should appear in h1-h6 tags (images are still allowed in these tags!), Text paragraphs should be in p tags. Section or article tags may be a suitable replacement for your wrapping div. Itβs not enough to know CSS, you also need to know the appropriate HTML markup to go with it.
A more efficient way to do this would be as follows:
section.foo { background-image:url("images/About/Copy-Block.png"); background-repeat:no-repeat; width: 745px; height: 339px; margin: 0 auto; margin-top: 30px; } section.foo h1 { padding-top: 15px; padding-bottom: 2px; text-align: center; } section.foo p { padding-left: 90px; font-size: 13px; color: #FFF; font-style: italic; } section.foo p img { float: left; padding-right: 10px; }
And HTML:
<section class="foo"> <h1><img src="images/About/About-Us-Subhead.png" width="748" height="116" /></h1> <p><img src="images/About/image.png" width="257" height="194" /> Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi.</p> </section>
source share