|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
AT&T devCentral & BlackBerry(r) Webcast Series: BlackBerry and GPS -Build Location Awareness into your BlackBerry Applications, July 10th-1:00PM EST. Register Today!
|
|
#1
|
||||
|
||||
|
That huge space between form tags
OK, as the title suggests, there is an fixed space around <form tags and so if you have a whole list of them, there seems to be no way of squeezing them more together to reduce space, or is there? In Dreamweaver, you can see this as a feint red line. To overcome this, would you have to fit each one inside it's own <TD tag? or is there a neater way by using a style option along the form line?
thanks |
|
#2
|
||||
|
||||
|
spacing
You shouldn't be using tables to structure layout. Doing so will introduce all kinds of cross-browser cross-version issues.
Anyway, you have 2 things adding space. Try using CSS. Either inline like style="margin: 0" for the form tags and style="padding: 0" for the td tags. Or in the CSS head section or better yet, externally referenced file form { margin: 0; } td { padding: 0; } |
|
#3
|
||||
|
||||
|
Thanks Mittineague
The inline style="margin: 0" in the form tag did the trick for me, but will try the externally referenced ccs. This will solve many huge problems that exist on my site. However, I can't help be concerned about your words "You shouldn't be using tables to structure layout". I used Dreamweaver to build the site and actively offers this way of structuring the pages. I have 50 -70 pages which use this kind of structure (I think). Is this all about using XHTML? |
|
#4
|
|||
|
|||
|
CSS is the standard for constructing layout. Tables were never meant to be used the way we've all been using them. There's nothing wrong with using them, other than the fact that it isn't the standard. It all comes down to user preference. I've just started designing layouts with CSS and I am starting to prefer this method over tables, in both usage and to conform with W3C standards.
|
|
#5
|
||||
|
||||
|
SnapCracker, XHTML's a start. As ladams02 has advised, tables are an older state of mind. Modern web designers have adapted to "tableless" designs, where the layout is based on CSS and semantic HTML.
There are a few really good books you could buy to read up on it, Dan Cederholm's first book is excellent and Andy Budd's recent book called CSS Mastery seems to hit the spot, in fact the sample chapter (found here) may answer some of your questions.
__________________
Daryl's Homepage | My Blogroll | My Profile | Firefox supporter! DevArticles Forum Moderator "The net is a waste of time, and that's exactly what's right about it." -- William Gibson |
|
#6
|
||||
|
||||
|
I have started to read "A Brain-Friendy Guide to HTML & CSS" by Elisabeth Freeman & Eric Freeman (could be related!) just because I was buying books from Amazon anyway. I also bought Javascript for web developers Nicholas C.Zakas which I have not got into yet but looks brilliant.
|
|
#7
|
|||
|
|||
|
Quote:
I wouldn't say that. I suggest you read these: Why avoiding tables (for layout) is important Why tables for layout is stupid: problems defined, solutions offered Why go table free? Nested Tables: About the (ab)use of tables as layout tools in webpages. Tables Vs. CSS - A Fight to the Death Why Tables Are Bad (For Layout) Compared to Semantic HTML + CSS The layout is dead, long live the layout Tables or CSS: Choosing a layout What are tables really for? |
|
#8
|
||||
|
||||
|
Dreamweaver
I don't use Dreamweaver (too much $ and I actually prefer writing in Notepad), but I have skimmed this article http://www.sitepoint.com/article/dreamweaver-8-standards and it seems you can use Dreamweaver and have clean mark-up. Also, I haven't read the book or the free sample chapters, but you could check out http://www.sitepoint.com/books/dreamweaver1/?nocache=1806037741 (at least the free chapters)
Last edited by Mittineague : June 16th, 2006 at 11:26 AM. |
|
#9
|
||||
|
||||
|
yes, dreamweaver has advanced and made attempts to comply with the standards, I imagine it still requires a certain amount of "divine intervention", so keep any eye on the code while you're using any WYSIWYG editor. You'll never get as much full control as you would with a text editor.
|
|
#10
|
||||
|
||||
|
This talk about Dreamweaver has made me very suspicious of it's text editor regarding an earlier post relating to changing the .htaccess file on my hosting 1&1 apache server. If edited the file using DW and FTP'd the file, the new code would not work which made me work on the syntax of the code for ages, assuming that DW was doing nothing wrong. Eventually, 1&1 technical support ('technical' in the loosest terms!) changed the file for me using my code and it worked. Maybe I could try a text editor and a FTP client like Captain FTP for Mac (I had it free trial for ages as I only put my Mac on sleep!). BTW Mittineague, there are cheaper ways of getting DW, I bought a few of their products on eBay (I'm not taking about the $10 copies) and I have no doubt that they have genuine software keys. Thanks Kravvitz, I'll take a look those articles.
|
![]() |
| Viewing: Dev Articles Community Forums > Web Design > Web Development > That huge space between form tags |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|