January 4, 201115 yr http://bkwebdesignandhosting.co.uk/?page_id=4 The above url is my packages page and i would like to know the simplest and professional way to float these so there all next to each other. thanks html/css: <div id="b1" style="width: 168px; border: #0f0 1px dotted; padding: 2px;"><img src="http://www.bkwebdesignandhosting.co.uk/wp-content/themes/Basic'>http://www.bkwebdesignandhosting.co.uk/wp-content/themes/Basic'>http://www.bkwebdesignandhosting.co.uk/wp-content/themes/Basic Foundation Themes/Basic303/images/bronze.png" alt="bronze package" width="168" height="99" /> <ul> <li>1-2 Pages</li> <li>Logo/Header Design</li> <li>Custom Design Layout</li> <li>Customer enquiry form</li> <li>Unlimited email accounts</li> <li>(SEO) Search engine optimisation</li> </ul> <a>Click here for full info!</a> </div> <div id="s1" style="width: 168px; border: #0f0 1px dotted; padding: 2px;"><img src="http://www.bkwebdesignandhosting.co.uk/wp-content/themes/Basic Foundation Themes/Basic303/images/silver.png" alt="bronze package" width="168" height="99" /> <ul> <li>1-2 Pages</li> <li>Logo/Header Design</li> <li>Custom Design Layout</li> <li>Customer enquiry form</li> <li>Unlimited email accounts</li> <li>(SEO) Search engine optimisation</li> </ul> <a>Click here for full info!</a> </div> <div id="g1" style="width: 168px; border: #0f0 1px dotted; padding: 2px;"><img src="http://www.bkwebdesignandhosting.co.uk/wp-content/themes/Basic Foundation Themes/Basic303/images/gold.png" alt="bronze package" width="168" height="99" /> <ul> <li>1-2 Pages</li> <li>Logo/Header Design</li> <li>Custom Design Layout</li> <li>Customer enquiry form</li> <li>Unlimited email accounts</li> <li>(SEO) Search engine optimisation</li> </ul> <a>Click here for full info!</a> </div>
January 4, 201115 yr First of all I would get into the habit of using Style Sheets instead of writing the styles out in-line. Secondly, surely just giving all the div boxes you want stacked next to each other a float left and a slight margin left will do the job, so long as their parent div is giving them enough room to space out next to each other, otherwise they will 'line break'.
January 4, 201115 yr Author ok thanks for that, btw i do use a style sheet usually however this is done using the back end of wordpress when you can edit your pages so i thought ill do it all there and if i ever need to change it i can easily where ever i am.
Create an account or sign in to comment