473,473 Members | 2,061 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

wildcards and the case for setting all default styles

I tend to be a bit behind the times, sometimes a generation further
that I want.

So, I've been thing about the "*" selector. I've noticed that unlike
body, it styles form fields and form elements. Unless I'm missing
something here, it seems like setting a wildcard font-family and perhaps
color is a good thing. I'm not sure what else you'd default with that
as setting % sizes,margins and borders on everything would be a mess.

The question for me is: What about taking form fields out of
monospace? Unless you have some wild body font, why not have them the
same font family as the body text?

Perhaps something like this:

<style type="text/css">
*{font-family: Tahoma, Geneva, sans-serif}
body{color: #234567}

#form_table{width: 500px
... border stuff
}
#form_table tr td:first-child{
text-align: right;
width: 10em;
padding-right: 1em;
}

input{width: 100%}
</style>

....

<table id="form_table">

<tr><td><label for="field 1">Field 1</label></td><td><input type="text"
size="4" name="field_1"></td></tr>

....

We all write a lot of forms, and I'm just trying to get some idea of
the state of the form. What styling gets in the way of usability? I'd
like to move beyond plain jane.

Jeff

Jun 27 '08 #1
1 2102
Jeff wrote:
>
So, I've been thing about the "*" selector. I've noticed that unlike
body, it styles form fields and form elements. Unless I'm missing
something here, it seems like setting a wildcard font-family and perhaps
color is a good thing.
I've found very little use for the * universal selector.

Set your default colors and font styles on the body element, and don't
bother with *.
I'm not sure what else you'd default with that
as setting % sizes,margins and borders on everything would be a mess.
Indeed, and is why I don't use it. More often than not you end up having
to over specify everything, which makes the stylesheet unnecessarily
bloated and a pain to maintain.
The question for me is: What about taking form fields out of
monospace? Unless you have some wild body font, why not have them the
same font family as the body text?
Why not let them default to what the user is accustomed to seeing?
We all write a lot of forms, and I'm just trying to get some idea of
the state of the form. What styling gets in the way of usability?
Pretty much any of it. ;)

Leaving form controls at the browser defaults is best for usability
because that is what the user is accustomed to. I've seen a lot of forms
where the "3d" borders are flattened or some other styling is used to
make them look kewl. Many times this just ends up confusing because they
no longer look like form fields.
I'd
like to move beyond plain jane.
Nothing wrong with plain jane as far as forms go, IMO.
Just don't go overboard.

--
Berg
Jun 27 '08 #2

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

Similar topics

10
by: Alvaro Puente | last post by:
Hi all! Do any of you know if wildcards are accepted when calling rename() function? Thanks/Alvaro
6
by: Andy | last post by:
I have a form with several ComboBoxes. One of these is Surname, can I make it select all the Smiths for example by using wildcards? At the moment my query only picks up the individual Surname...
2
by: Dennis | last post by:
I am trying to implement a "Find and Replace" dialog that allows using wildcards in the find string, much like the Find and Replace Dialogs in Ms Word, etc. Are there any references or examples on...
3
by: sagar | last post by:
Hello everyone, I am developing a AJAX based IM application. I use javascript to dynamically generated small windows using nested <div> within the web-page. I use the following ways to set...
19
by: Alan Carpenter | last post by:
Access 8 on Win98 and WinXP I'm having trouble with wildcards in the .Filename property of the FileSearch Object giving different results on win98 and XP. I've been successfully using...
8
by: Jeff | last post by:
ASP.NET 2.0 I'm wondering how to set the color of a visited HyperLinkField (the link text) in a GridView?? Here is the markup of the HyperLinkField I have problems with: <asp:HyperLinkField...
9
by: Kenneth Porter | last post by:
I'm un-indenting the constructs mentioned in the subject line to align with the enclosing braces: switch (expression) { case 1: statement1; case 2; statement2; default:
5
by: nidaar | last post by:
From a security point of view, is accepting wildcards like "%" in input parameters of stored procedures against any best practices? As an example, if a user defined function uses "Productname...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
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...
1
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...
0
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...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
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 ...

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.