CSS Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignCSS Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old August 23rd, 2003, 09:08 AM
prudek prudek is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Posts: 7 prudek User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Form breakes tight CSS layout

The <form> tag breaks a tight layout.

It seems that a <form> will override "inline" for any CSS style and change it to "block". I even tried to nest two <div> CSS tags in order to contain the form. Not good enough.

You can see my effort at http://www.spoxdesign.com/test2/form.html

This layout is broken because the form is always displayed on a separate line. The form should appear on the same line as the buttons and the text.

This layout was originally successfully done with normal tables and a simple hack to prevent whitespace. You will see the original layout if you click on any button in the above url.

What mistake am I making? How can I refactor this layout using CSS?

Reply With Quote
  #2  
Old August 23rd, 2003, 07:26 PM
fgeller's Avatar
fgeller fgeller is offline
:(){ :|:&};:
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Location: Germany
Posts: 297 fgeller User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 11 h 4 m 52 sec
Reputation Power: 5
Send a message via ICQ to fgeller
Afaik you have to use tables to get the form on the same line, but then still there will be problems because of the height of the form. The only work around I could think of is a JavaScript function and a form somewhere else on the page with a hidden file, which gets submitted when somebody selects something in your select box.
__________________
regards >_<

ws. fgeller.de
em. felix@fgeller.de

Reply With Quote
  #3  
Old August 23rd, 2003, 09:07 PM
jerom jerom is offline
Contributing User
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: May 2003
Posts: 1,014 jerom User rank is Corporal (100 - 500 Reputation Level)jerom User rank is Corporal (100 - 500 Reputation Level)jerom User rank is Corporal (100 - 500 Reputation Level)jerom User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 1 Day 17 h 34 m 25 sec
Reputation Power: 9
Quote:
It seems that a <form> will override "inline" for any CSS style and change it to "block".

If you don't like that, just say so in your stylesheet:
Code:
form {
	display: inline;
}


Some additional remarks:
-there are two divs with an id 'menutop'; id's should be unique;
-you use a strict DTD, but it doesn't validate as such.. you may check with: http://validator.w3.org

Hope this helps,
Jeroen

Reply With Quote
  #4  
Old August 24th, 2003, 05:00 AM
prudek prudek is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Posts: 7 prudek User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Thanks, Jerom!

Actually after posting my question I got up from my computer and I went swimming... and of course, within an hour it dawned upon me "why the hell did I not try to modify the <form> tag?"

So in conclusion it always helps to stop working and have some fun.

Thanks again!

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignCSS Help > Form breakes tight CSS layout


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway