|
-
Jun 9th, 2005, 08:46 AM
#1
[Resolved] Proper way to CSS align a form
N00b question...
How do I use CSS to align a form to the right, when its vertical postion is absolute?
At the moment I have this
HTML Code:
<span style="position:absolute;top:335px;horizontal-align:right; margin-right: 20px;">
<form method="get" action="http://www.google.com/search" target="_blank">
<!-- ... -->
</form></span>
It was working once, but now it isn't
Last edited by penagate; Jun 9th, 2005 at 12:50 PM.
-
Jun 9th, 2005, 10:13 AM
#2
Fanatic Member
Re: Proper way to CSS align a form
HTML Code:
<body>
<span style="position:absolute;top:335px;margin-right: 20px;right:0">
<form method="get" action="http://www.google.com/search" target="_blank">
</form></span>
</body>
-
Jun 9th, 2005, 10:19 AM
#3
Re: Proper way to CSS align a form
Thanks! I should have thought of that 
So what's the difference between margin-right and right? They seem to give me the same results.
-
Jun 9th, 2005, 12:23 PM
#4
Re: Proper way to CSS align a form
 Originally Posted by penagate
Thanks!  I should have thought of that
So what's the difference between margin-right and right? They seem to give me the same results.
Margin-right sets the right margin of an element and right sets how far the right edge of an element is to the left/right of the right edge of the parent element 
Cheers,
RyanJ
-
Jun 9th, 2005, 12:27 PM
#5
Re: Proper way to CSS align a form
 Originally Posted by sciguyryan
Margin-right sets the right margin of an element and right sets how far the right edge of an element is to the left/right of the right edge of the parent element
Cheers,
RyanJ
So I guess in this case (since my form is directly on the body) they mean exactly the same thing, correct?
-
Jun 9th, 2005, 03:24 PM
#6
Re: Proper way to CSS align a form
 Originally Posted by penagate
So I guess in this case (since my form is directly on the body) they mean exactly the same thing, correct?
In this context yes it does 
Cheers,
RyanJ
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|