![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
|
|
#1 |
|
Programming Guru
![]() ![]() |
Closing <form> without a gap?
How do I close the <form> tag without creating a newline after the form was closed?
http://jammersbase.ath.cx/ <-- Look at the O2Jam Song Battle 2006 - Round #9 part. You can see here how the form tag stretches the border of the surrounding region, due to the placement of </form>. Any way around this? |
|
|
|
|
|
#2 | |
|
Newbie
|
Quote:
Could you post a screeny of what you mean? I can't seem to figure out where, or what exactly you are talking about. ![]()
__________________
I wish I was you, so I could be friends with me. |
|
|
|
|
|
|
#3 |
|
Expert Programmer
|
Set the form's margin to 0.
|
|
|
|
|
|
#4 | |
|
Professional Programmer
|
Quote:
[PHP] form { margin: 0; }[/PHP] |
|
|
|
|
|
|
#5 |
|
Programming Guru
![]() ![]() |
Wee! Thank-you.
![]() |
|
|
|
|
|
#6 |
|
Resident Grouch
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2005
Posts: 6,453
Rep Power: 10
![]() |
Just a side note. The default values for many things are not zero. Sometimes they aren't even what one would expect (though that's, of couse, a matter of opinion). It can be a huge pain in the south end of a northbound designer.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code. Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers |
|
|
|
|
|
#7 |
|
Resident Grouch
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2005
Posts: 6,453
Rep Power: 10
![]() |
Yup...
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code. Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers |
|
|
|
|
|
#8 |
|
Expert Programmer
|
I've seen the following used to set the margin and padding of every element to 0:
* { margin: 0; padding: 0; } |
|
|
|
|
|
#9 |
|
Resident Grouch
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2005
Posts: 6,453
Rep Power: 10
![]() |
The non-zero defaults are there for a purpose, of couse, even if one disagrees with their exact values. Unilaterally defeating them with a simple statement seems like an idea that would cause the investment of much more effort in order to restore a halfway decent appearance. Just a thought. I have a bad habit of sitting behind the barn, watching the crops grow, and wondering about such things. Oh, well, time and effort are free.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code. Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers |
|
|
|
|
|
#10 |
|
I eat cake for breakfast.
![]() ![]() ![]() ![]() Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9
![]() |
I used to do that same thing, but many things, as DaWei said, have margins and padding for a reason. Paragraphs use margin-bottom to space themselves out, and lists use margin-left or padding-left (depending on your browser) to indent themselves.
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|