Re: center two inline elements
- From: "Roy A." <royarneskar@xxxxxxxxx>
- Date: Sat, 13 Sep 2008 07:45:23 -0700 (PDT)
On 13 Sep, 06:48, Lanmind <LANMIN...@xxxxxxxxx> wrote:
Hello all,
Quick question, is it possible to center two inline elements next to
each other inside a block level element?
I have an input text box and input submit button next to each other
inside a <div>, I would like to have both elements next to each other
but still centered inside the <div>.
div { text-align: center }
The elements have id's "text" and "submit" and the <div>'s id is
"main_search".
Here is my page and CSS:
http://www.dockhawk.com/default_test.html
Try to use a stripped down test case.
http://www.dockhawk.com/default_test.css
#main_search {
[...]
/*width: 496px;*/
text-align: center;
[...]
}
.
- Follow-Ups:
- Re: center two inline elements
- From: Lanmind
- Re: center two inline elements
- References:
- center two inline elements
- From: Lanmind
- center two inline elements
- Prev by Date: create a webpage with tabs
- Next by Date: Re: relative image
- Previous by thread: Re: center two inline elements
- Next by thread: Re: center two inline elements
- Index(es):
Relevant Pages
|