?
Solved

CSS for multiline textbox and textfield

Posted on 2009-04-16
2
Medium Priority
?
1,654 Views
Last Modified: 2012-06-27
I want to have a multiline textbox on the left and a text field on the right, beside it. On the baseline.

<table><tr><td valign=bottom>
<multilinetextbox goes here>
</td><td> Text: <textbox goes here>
</td></tr></table>

Can that be done with styles without using a table?
thanks.
0
Comment
Question by:Starr Duskk
2 Comments
 
LVL 4

Accepted Solution

by:
slovisa earned 2000 total points
ID: 24163053
You can use divs just like table cells - just float one. E.G.

<div style="float:left;">
multi<br />
line<br />
textbox<br />
here<br />
</div>
<div style="padding-top:57px;">
Text at baseline
</div>

This assumes you want the "baseline" text at the bottom of the second div. If so, just adjust the padding appropriate to the height of your multiline textbox. If not, just remove the style altogether.

Is that what you're going for?
0
 
LVL 2

Author Closing Comment

by:Starr Duskk
ID: 31571106
thanks!
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction A frequently asked question goes something like this:  "I am running a long process in the background and I want to alert my client when the process finishes.  How can I send a message to the browser?"  Unfortunately, the short answer…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
In this tutorial viewers will learn how to define a gradient in CSS. Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Gradient. Define the background as "linear-gradient(to right, #ee3668, black)". Ensure you …
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…
Suggested Courses
Course of the Month15 days, 20 hours left to enroll

850 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question