I don't see anything that would prevent you from using this class again for another box. Have you tried adding another <div id="textbox1"></div> to the page?
Main Topics
Browse All TopicsI have one CSS div box set up on a page. http://www.greatoakssurger
I would like to add another, can somebody please explain how I could position another further down the page on the right hand side.
This is the code to the first box and i think i need to set up similar for other boxes. For instance create new classes called textbox2 etc..
/*** boxes ***/
#textbox1
{
background-color:#F9F5C5;
border: 1px;
border-style: solid;
border-color:#d3d3d3;
position: relative;
padding: 10px;
margin-top: 10px;
margin-right: 10px;
float: left;
width: 150px;
}
#textbox1 h3
{
margin:2px;
font-size: 0.85em;
border-bottom: solid 1px #666666;
width: 150px;
}
#textbox1 p
{
font-size: 0.85em;
text-align:left;
margin:2px;
}
Thank you in advance!
Emma
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Here is a little gem of a link that someone sent me when I had positioning problems.. made my CSS life a happy one.. maybe it will help you to.. CSS positioning in very easy steps
http://www.barelyfitz.com/
Good Luck!
That is all brilliant.
Ok so i can use the textbox1 again further down the page - that works!
If i want that textbox floated right - can I apply the float: right command to the DIV in the page or should I set up a the class with a float right element?
Thanks for the lnk mvwmail. I shall have a good look at it!
Emmx
Hello,
ID's should be unique. You should use an id once in the page. If you want to reuse the css, which seems wise to me. Create a class... just change #textbox1 to .textbox1 and html id="textbox1" to class="textbox1". Maybe you could call it sidebox for easy reference.
.sidebox {
background-color:#F9F5C5;
border: 1px solid #d3d3d3;
padding: 10px;
width: 150px;
}
.floatright {float:right; margin: 10px 0 0 10px;}
.floatleft {float:left;margin: 10px 10px 0 0;}
<div class="sidebox floatright"></div>
Rgds
Business Accounts
Answer for Membership
by: SteggsPosted on 2007-06-06 at 04:47:31ID: 19224198
Hello NorthDorsetWeb,
Simply use float:right instead of float:left;
Then put your new box lower down in the html, maybe after this line
"This will mean that patients who don?t usually pay for prescriptions will be able to obtain medicines for minor ailments from the pharmacy free of charge."
Regards,
Steggs