|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
CSS alignment
HI,
I'm trying to get a line of text to lineup with a textbox using css. The code I have is as follows: Code:
.row {
height: 30px;
vertical-align: text-top;
}
.formField {
border: 1px solid #666;
width: 150px;
background: #FFFFFF;
color: #000000;
}
<body>
<div class="row">
xxxxx: <input type="text" class="formField">
</div>
</body>
The textbox is sitting just above the text. How can I get them lined up properly? |
|
#2
|
||||
|
||||
|
I don't think you can with just css...
Works with tables though... Code:
<table> <tr> <td>XXXXX: <input type="text" class="formField"></td> </tr> </table>
__________________
Support requests via PM will be ignored! |
|
#3
|
|||
|
|||
|
Gotta be a way. If not then I can laugh in the face of all the CSS zealots out there.
![]() |
|
#4
|
|||
|
|||
|
reducing hieght of a textbox
Hi, I was wondering if there were a way of reducing the height of a textbox in a form field? height="?" does nothing.
Thanks in advance, Tom |
|
#5
|
||||
|
||||
|
The easiest solution to your problem could be solved like this.
PHP Code:
Hope this was helpful. skycast: You can change the height of textbox using css. Try putting style="height:45px;" into the tags of your textbox.
__________________
DustyReagan.com |
|
#6
|
||||
|
||||
|
This works...
Code:
<html> <body> <form> <input type="text" style="width:100px; height:15px; font-size:8px;" /> </form> </body> </html> |
![]() |
| Viewing: Dev Shed Forums > Web Design > CSS Help > CSS alignment |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|