View Full Version : Problem getting form elements aligned
01-24-2012, 08:55 AM
Virtually all my elements line up nicely except for the first three
which insist on having the input box before the descriptive text. :eek:
The css that I am using appears to be identical to me and yet the first 3 elements are behaving differently :(
Compare "Campaign Title:" and "Niche:"
This is the page:
My site (http://www.expressresponse.net/edit_camp.php?a=1)
If anyone can see what I have done wrong, would really appreciate the input. :)
01-24-2012, 01:12 PM
It appears to be fine to me, although, you do have a problem with your textareas on higher resolutions (they are not on a new line), but that can be easily sorted out if you put <p> tags around them :)
01-24-2012, 03:37 PM
So are you seeing something different from this ?
This is FF 9.0.1
This is IE
This is Chrome
01-24-2012, 03:44 PM
Yes I am seeing something different (attachment)
I am on a 1080p monitor.
01-24-2012, 04:02 PM
Just an example of the FIRST field, you can adjust the others as needed to fix the problem: (Note: Only checked/fixed for Firefox, didnt check other browsers)
in your HTML, find this:
<div class="art_title"><span>Campaign Title:<input class="data1" type="text" value="Your free two month dog training course" maxlength="40" size="66" name="x_title">
Replace with this: (and same to others if you want them all fixed)
<span>Campaign Title:</span> <input type="text" style="margin-top:12px;" class="data1" name="x_title" size="66" maxlength="40" value="Your free two month dog training course">
Changes the SPAN position to place text to the left and add's MARGIN to top of input element to align it on the horizontal centerline
01-24-2012, 07:29 PM
Thanks very much
Got those elements sorted out ( thanks again )
Now I have been trying to get the dashed bordered div to be centered.
It is centered now but in FF the dashed box does not go around the whole form like it is supposed to.
If I add a float:left to the form_top class, then the dashed box will go around all of the form but of course then it is not centered.
Here is my present form
My Site (http://www.expressresponse.net/edit_camp.php?a=1)
Does anyone know how I resolve this ?
01-24-2012, 07:59 PM
Since your form elements are floated, you'll need to clear them before the container will enclose them.
Like this -
margin: 20px auto;
padding: 10px 0 10px 20px;
See this explanation of how overflow: auto; clears your floats (http://www.quirksmode.org/css/clearing.html).
The x scrollbar that adds at the bottom shows how your 80% width container doesn't really work with your pixel width content.
Powered by vBulletin® Version 4.2.2 Copyright © 2015 vBulletin Solutions, Inc. All rights reserved.