473,776 Members | 1,650 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

input type hidden => disturb layout

Hi,

Im have been changing my site to make it HTML 4.01 compliant

As I should, I wrapped all INPUT tags in blocks
I wrapped the not visible INPUT type HIDDEN tags in first PRE, later H6 tags
to comply to HTML 4.01, but this changes my layout severly

In the upper right corner of http://www.dewolf.net, one can cahnge the
language of the site.
But I do not find a way of aligning the prompt 'change language' with the
two submit buttons next to it. (they look like links, but they are submit
buttons)
I think this is due to the INPUT type HIDDEN buttons that I had to wrap in
blocks.

Can anyone give me a hint on how to get the alignment correct?

Thx

Edward
Jul 20 '05 #1
7 6749
"Eduard Dewolf" <ed***********@ pandora.be> wrote:
Im have been changing my site to make it HTML 4.01 compliant

As I should, I wrapped all INPUT tags in blocks
I wrapped the not visible INPUT type HIDDEN tags in first PRE, later H6 tags
to comply to HTML 4.01, but this changes my layout severly
Are they performatted text? No.
Are they level size headings? No.
So don't use <pre> or <h6>.

Use something appropriate (like <fieldset>) or something generic (like
<div>).
In the upper right corner of http://www.dewolf.net, one can cahnge the
language of the site.
But I do not find a way of aligning the prompt 'change language' with the
two submit buttons next to it. (they look like links, but they are submit
buttons)
In Opera 7.11 they look like tiny dots. This resolves itself when CSS
is disabled so I guess something in your CSS is acting up.
I think this is due to the INPUT type HIDDEN buttons that I had to wrap in
blocks.


You don't have to wrap each <input> in it's own block. You can wrap
the hidden inputs in the same div as the submit button.

Steve

--
"My theories appal you, my heresies outrage you,
I never answer letters and you don't like my tie." - The Doctor

Steve Pugh <st***@pugh.net > <http://steve.pugh.net/>
Jul 20 '05 #2
In article <%n************ ******@afrodite .telenet-ops.be>,
"Eduard Dewolf" <ed***********@ pandora.be> wrote:
Im have been changing my site to make it HTML 4.01 compliant

As I should, I wrapped all INPUT tags in blocks
I wrapped the not visible INPUT type HIDDEN tags in first PRE, later H6 tags
to comply to HTML 4.01, but this changes my layout severly

In the upper right corner of http://www.dewolf.net, one can cahnge the
language of the site.
But I do not find a way of aligning the prompt 'change language' with the
two submit buttons next to it. (they look like links, but they are submit
buttons)
I think this is due to the INPUT type HIDDEN buttons that I had to wrap in
blocks.

Can anyone give me a hint on how to get the alignment correct?


If your HTML looks something like this at the moment:

<form ...>

<p>
<input type="hidden" ...>
</p>

<h2>
<input type="hidden" ...>
</h2>

<pre>
<input type="hidden" ...>
</pre>

<p>
<input type="text" ...>
</p>

</form>

Then simply make it:

<form ...>

<p>
<input type="hidden" ...>
<input type="hidden" ...>
<input type="hidden" ...>
<input type="text" ...>
</p>

</form>

A final hint is to influence layout issues with CSS. The margins that
for instance a H2 creates are trivial when you can influence its
appearance through CSS.

--
Kris
kr*******@xs4al l.netherlands (nl)
"We called him Tortoise because he taught us" said the Mock Turtle.
Jul 20 '05 #3
> In article <%n************ ******@afrodite .telenet-ops.be>,
"Eduard Dewolf" <ed***********@ pandora.be> wrote:
Im have been changing my site to make it HTML 4.01 compliant

As I should, I wrapped all INPUT tags in blocks
I wrapped the not visible INPUT type HIDDEN tags in first PRE, later
H6 tags to comply to HTML 4.01, but this changes my layout severly

In the upper right corner of http://www.dewolf.net, one can cahnge
the language of the site.
But I do not find a way of aligning the prompt 'change language'
with the two submit buttons next to it. (they look like links, but
they are submit buttons)
I think this is due to the INPUT type HIDDEN buttons that I had to
wrap in blocks.

Can anyone give me a hint on how to get the alignment correct?


If your HTML looks something like this at the moment:

<form ...>

<p>
<input type="hidden" ...>
</p>

<h2>
<input type="hidden" ...>
</h2>

<pre>
<input type="hidden" ...>
</pre>

<p>
<input type="text" ...>
</p>

</form>

Then simply make it:

<form ...>

<p>
<input type="hidden" ...>
<input type="hidden" ...>
<input type="hidden" ...>
<input type="text" ...>
</p>

</form>

A final hint is to influence layout issues with CSS. The margins that
for instance a H2 creates are trivial when you can influence its
appearance through CSS.


Use a div, a paragraph does not consist of a series of hidden input elements
does it?

In addition a div *generally* has no padding or margin by default.

--
BenM
http://www.benmeadowcroft.com/
Jul 20 '05 #4
In article <bg**********@n ewsg4.svr.pol.c o.uk>,
"Ben M" <ce******@virgi n.net> wrote:
Use a div, a paragraph does not consist of a series of hidden input
elements does it?
It does not hold only that.


rephrase that to: "a paragraph does not consist of a series of input
elements"


What does it contain?
Is this not a legit use of a paragraph?

<p>
<label for="email">You r e-mail please:</label><input type="text"
id="email" ...>
</p>

In addition a div *generally* has no padding or margin by default.


So? Appearance is trivial.


Semantics aren't, why is a p element preferable to using a div?


Because I think it is more of a paragraph than it is something generic,
something 'nothing'.

--
Kris
kr*******@xs4al l.netherlands (nl)
"We called him Tortoise because he taught us" said the Mock Turtle.
Jul 20 '05 #5
> In article <bg**********@n ewsg4.svr.pol.c o.uk>,
"Ben M" <ce******@virgi n.net> wrote:
Use a div, a paragraph does not consist of a series of hidden input
elements does it?

It does not hold only that.


rephrase that to: "a paragraph does not consist of a series of input
elements"


What does it contain?
Is this not a legit use of a paragraph?

<p>
<label for="email">You r e-mail please:</label><input type="text"
id="email" ...>
</p>

In addition a div *generally* has no padding or margin by default.

So? Appearance is trivial.


Semantics aren't, why is a p element preferable to using a div?


Because I think it is more of a paragraph than it is something
generic, something 'nothing'.


You have snipped the original example my comments cited (given below for
context).

<p>
<input type="hidden" ...>
<input type="hidden" ...>
<input type="hidden" ...>
<input type="text" ...>
</p>

In your new example a p is more useful as there is textual content. In the
original example however there was no textual content. Hence my suggestion
to use a div. The original was *not* a paragraph, hence it should not have
been marked up as such.

The p element is preferable to a div when the content could be reasonably
considered a paragraph. When it could not be considered a paragraph a more
appropriate, or more general, element should be used.

--
BenM
http://www.benmeadowcroft.com/
Jul 20 '05 #6
In article <bg**********@n ewsg4.svr.pol.c o.uk>,
"Ben M" <ce******@virgi n.net> wrote:
> In addition a div *generally* has no padding or margin by default.

So? Appearance is trivial.

Semantics aren't, why is a p element preferable to using a div?
Because I think it is more of a paragraph than it is something
generic, something 'nothing'.


You have snipped the original example my comments cited (given below for
context).


Sorry, my fault.

<p>
<input type="hidden" ...>
<input type="hidden" ...>
<input type="hidden" ...>
<input type="text" ...>
</p>

In your new example a p is more useful as there is textual content. In the
original example however there was no textual content.
Isn't there? If I input some, doesn't that count?
Hence my suggestion
to use a div. The original was *not* a paragraph, hence it should not have
been marked up as such.
To not make this discussion into a mud-fight by my doing, I have to
admit that I hold a fairly liberal view on what is a Paragraph or not.
To me, a paragraph is either clearly one, or a block of content when
nothing better applies. Only after I also outrule it as a P, it becomes
a DIV. I see it as the 'almost'-last alternative.

The p element is preferable to a div when the content could be reasonably
considered a paragraph.
I am curious what you consider as one. This is not to prove I am right
or anything, I am just curious.
For instance, is this a paragraph:

<p>
<a ...>More news...</a>
</p>

or this?

<p>
....
</p>

or this?

<p>
<img ..>
</p>
When it could not be considered a paragraph a more
appropriate, or more general, element should be used.


I agree on that. We disagree on what is a paragraph.

--
Kris
kr*******@xs4al l.netherlands (nl)
"We called him Tortoise because he taught us" said the Mock Turtle.
Jul 20 '05 #7
Kris <kr*******@xs4a ll.netherlands> wrote:
I have to
admit that I hold a fairly liberal view on what is a Paragraph or
not. To me, a paragraph is either clearly one, or a block of
content when nothing better applies. Only after I also outrule it
as a P, it becomes a DIV. I see it as the 'almost'-last
alternative.


But why would you ever outrule P, if you think that it can be any block
of content?

I'd suggest consulting some dictionary definitions for "paragraph" ,
like "a subdivision of a written composition that consists of one or
more sentences, deals with one point or gives the words of one speaker,
and begins on a new usually indented line".
http://www.m-w.com/cgi-bin/dictionary?paragraph

You could also ask whether you would welcome browsers and other
software that treat P elements paragraphs as defined for literary works
traditionally. Or would it be a threat that some browsers would present
P elements _in their own ways_ as appropriate for a particular
rendering situation? For example, a program could
- make a clear pause when reading the page
- obey the user's command for moving to the next paragraph
- leave space before and after each paragraph, as browsers have
traditionally done for some odd reason
- use "literary paragraph" style, with no vertical spacing but with
first line of each paragraph indented when it immediately follows
another paragraph
- treat the content as a unit when performing some linguistic analysis
of paragraph structures on Web pages.

--
Yucca, http://www.cs.tut.fi/~jkorpela/
Pages about Web authoring: http://www.cs.tut.fi/~jkorpela/www.html

Jul 20 '05 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
20480
by: Don | last post by:
Is there some way to populate the "Browse" box for a <input type=file...> with a default value? I can do it for <input type=text...>, but can't seem to do it for <input type=file...>. Any ideas? Thanks, Don ----== Posted via Newsfeeds.Com - Unlimited-Uncensored-Secure Usenet News==----
4
17257
by: Csaba2000 | last post by:
I want to be able to programatically click on the center of an <INPUT type=image ...> element (I only care about IE 5.5+). This should work regardless of whether IE has focus. Normally you would do myDomElement.click and the mouse doesn't matter, but in the case of an input image element, what happens is the submitted url has something like "?x=12&y=7" appended to it (the numbers vary per mouse position on the clicked element). If you hit...
15
28958
by: Mattia | last post by:
Hi! I have a <form> that can be submitted thruogh three buttons and I need to tell witch one was pressed when the form was submitted. I now do it with 3 <input type="submit" name="..." value="..."> with <input type="submit" ...> the only name-value values submitted (pushed into the query string) is the one of the submit button that was pushed (if you have many of them). Ex:
1
2460
by: myahact | last post by:
Hello, I have <input type=file id=myfile> in a form. In IE I can read the value thusly: document.getElementById("myfile").value But thusly returns "" in Mozilla/Netscape. I also tried through the DOM but
3
7578
by: simon | last post by:
I have input html control in my dataGrid. When user click some button I would like to get it's value from codeBehind. <ItemTemplate> ....... <input type=hidden runat=server id="txtExists" value='<%# Container.DataItem( "exists" ) %>'> </ItemTemplate> Public txtExists As System.Web.UI.HtmlControls.HtmlInputHidden
0
1172
by: yoshra | last post by:
i want to edit form and submit (post) it to another server. the name value contain char that cannot be inisde varible name in .net "xxx" so i gave those inputtypehidden diffrent name and diffrent id but when the html go to the client it change the name of inputtypehidden to the id also i am using user control so name is totally diffrent..
3
21272
by: jackiepatti | last post by:
QUESTION: I have a web page containing a form that contains an image instead of a submit button, e.g. <form name='myform' action='get' method='otherpage.asp'> <input type='image' src='picture.gif' name='myimage' id='myimage'> </form> When forms with image types are submitted, the value is not returned; instead, when the form is submitted, the XY coordinates of the where the user clicked on the image are sent. For example, if the user
6
8108
by: reiyel | last post by:
hiya all i would like to ask some help for a little javascript, here's my problem: i have a html page with a <input type="file"> box, problem is i don't want the user to be able to write on the text field, he must use the browse button. i tried a lot of codes but no one works for both IE and firefox i tried to use onclick="blur",m but in that case the field and "browse button" didn't work here's what i've done: <form name="form1"> ...
4
9087
by: SammyBar | last post by:
Hi all, I wonder is it possible to upload the content of an <imgfield to a server. The content of the <imgwas downloaded from a web site different from the one it should be uploaded. The image file should not be saved locally before uploading. It should not be visible any <input type=file on the form. How can it be done? I'm working on a project where client javascript requests an image server to generate dynamic images. The client...
0
9628
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9464
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10122
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10061
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9923
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8954
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7471
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6722
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
4031
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.