Link to home
Start Free TrialLog in
Avatar of techdl
techdlFlag for United States of America

asked on

How to align text box & button using CSS?

I have a textbox:

output.AddAttribute(HtmlTextWriterAttribute.Class, "_textBox");
output.RenderBeginTag(HtmlTextWriterTag.Div);
(textbox code)
textBox.RenderControl(output);
output.RenderEndTag();

and a button:
output.AddAttribute(HtmlTextWriterAttribute.Class, "_button");
output.RenderBeginTag(HtmlTextWriterTag.Div);
(button code)
button.RenderControl(output);
output.RenderEndTag();
-------------------------------------
How do I align the textbox and the button on the same line using CSS?
._textbox
{
   ?????
}

Thanks in advance for any assistance.
._button
{
   ?????
}
Avatar of s8web
s8web

Can you provide the browser output?

View the source of the browser rendered page and copy/paste it into your next comment.

It would actually be better if you could provide a link to a page where this code is running.
ASKER CERTIFIED SOLUTION
Avatar of andrewkhan
andrewkhan
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial