Text Boxes

Woiah

Member
Mar 5, 2012
234
8
How can i add a Textbox to the right of one other

uWZlt.png
 

BBC

New Member
Feb 4, 2013
7
4
Put a div around the box (or use the id / class of the one you already have) and call the box id / class in css and use margin-left
Example:

#myDiv{
margin-left:250px;
}

Or if you want it centered in the page, try:

#myDiv{
width:250px;
width: 700px ;
margin-left: auto ;
margin-right: auto ;
}
 

Sysode

Front-End Developer
Dec 11, 2012
1,673
848
Put a div around the box (or use the id / class of the one you already have) and call the box id / class in css and use margin-left
Example:

#myDiv{
margin-left:250px;
}

Or if you want it centered in the page, try:

#myDiv{
width:250px;
width: 700px ;
margin-left: auto ;
margin-right: auto ;
}

Just to add to that, if you wish to have other boxes alongside the same line, add: display:inline;

Also, to add to the styling you could add border-radius' and box shadow etc.
 

Users who are viewing this thread

Top