473,808 Members | 2,835 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

HTML - CSS variable names correspondence.

Hello,

It is strange to me that html and css use different names for variables
which define the same properties. For example if I whant to define text
color from html document I write:

<body text="#dddddd">

And to define text color from css file I need to write:

body {color: "#dddddd";}

In the first example one need to use "text" in the second example
"color". Do you know where I can find an html-css dictionary in
Internet? Or at least, where I can find full list of css variable
names? For example I have in <body> tag bottomMargin="0 " and I would
like to set value of this parameter from css file and I am not sure
that in css file I can just write:

body {bottomMargin: "0"}

Jul 23 '05 #1
22 3964
in comp.infosystem s.www.authoring.html, op*********@yah oo.com wrote:
Hello,

It is strange to me that html and css use different names for variables
which define the same properties.
No, it is not. CSS has lots more properties, andthey are usually
applicable to many elements, instead of one.

And variable is very wrong term...
For example if I whant to define text
color from html document I write:

<body text="#dddddd">

And to define text color from css file I need to write:

body {color: "#dddddd";}
That is because with CSS, you can set border to body {border-style:solid}
and then the color is inherited. So it doesn't mean just text color.
Do you know where I can find an html-css dictionary in Internet?
There is no such thing, it's like dictionary of C++ and English, makes
not much sence... (but might be fun)
Or at least, where I can find full list of css variable
names?
http://www.w3.org/TR/REC-CSS2/propidx.html
For example I have in <body> tag bottomMargin="0 "


Notice that bottomMargin is not html...
margin-bottom:0;

--
Lauri Raittila <http://www.iki.fi/lr> <http://www.iki.fi/zwak/fonts>
Utrecht, NL.
Jul 23 '05 #2
op*********@yah oo.com wrote:
It is strange to me that html and css use different names for variables
which define the same properties. For example <body text="#dddddd">
body {color: "#dddddd";}
Or:

<font color="#dddddd" >
font { color: #dddddd; }

(There are no quotes around colours in CSS)

Overall, CSS is more consistant.
Or at least, where I can find full list of css variable
names?


http://www.w3.org/TR/CSS21/propidx.html

--
David Dorward <http://blog.dorward.me .uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is
Jul 23 '05 #3
On 28/03/2005 17:14, op*********@yah oo.com wrote:
It is strange to me that html and css use different names for variables
which define the same properties.
Why? CSS isn't only for use with HTML. It can be used by any
structured document. By the way, HTML has attributes, and CSS has
properties. Neither have variables. :)
For example if I whant to define text color from html document I write:

<body text="#dddddd">

And to define text color from css file I need to write:

body {color: "#dddddd";}
Without the quotes in the CSS example.
In the first example one need to use "text" in the second example
"color".
Yes, however the color property can affect more than just the text
within a document. Other features, such as borders, may also use this
value if they don't have their own explicitly set.
Do you know where I can find an html-css dictionary in Internet?
The HTML specification[1] itself usually provides CSS examples for
deprecated presentational elements and attributes.
Or at least, where I can find full list of css variable names?
The CSS specification[2] has a property index[3], just like the HTML
specification has an attribute and element index.

[snip]
body {bottomMargin: "0"}


Almost.

body {
margin-bottom: 0;
}

You can also specify all sides using the shorthand notation. It takes
all four sides in clockwise order: top, right, bottom, and left. If a
latter value is missing, it uses the value of its opposite side. For
example,

1) margin: 1ex;

All sides have a margin of 1ex.

2) margin: 0 3px;

The top and bottom sides have no margin, whilst the left and
right have a 3px margin.

3) margin: 0 3px 1em;

The top side has no margin, the bottom has a 1em margin, and the
left and right have a 3px margin.

Note that non-zero values must be accompanied by a unit. See section
4.3.2 - Lengths[4] for more information.

Hope that helps,
Mike
[1] <URL:http://www.w3.org/TR/html4/>
[2] <URL:http://www.w3.org/TR/REC-CSS2/>
[3] <URL:http://www.w3.org/TR/REC-CSS2/propidx.html>
[4] <URL:http://www.w3.org/TR/REC-CSS2/syndata.html#le ngth-units>

--
Michael Winter
Replace ".invalid" with ".uk" to reply by e-mail.
Jul 23 '05 #4
Els
David Dorward wrote:
Date: Mon, 28 Mar 2005 16:48:18 +0100


I'm not sure, but could it be you haven't set the clock on your PC to
daylight saving time yet? In my newsreader your messages pop up with
an hour delay it seems.

--
Els http://locusmeus.com/
Sonhos vem. Sonhos vão. O resto é imperfeito.
- Renato Russo -
Now playing: A-HA - Hunting High And Low
Jul 23 '05 #5
Gazing into my crystal ball I observed Els <el*********@ti scali.nl> writing
in news:3p******** *************** ******@40tude.n et:
David Dorward wrote:
Date: Mon, 28 Mar 2005 16:48:18 +0100


I'm not sure, but could it be you haven't set the clock on your PC to
daylight saving time yet? In my newsreader your messages pop up with
an hour delay it seems.


It's still Standard Time, at least in the US. Daylight savings time starts
here on the first Sunday in April, April 3, 2005.

--
Adrienne Boswell
http://www.cavalcade-of-coding.info
Please respond to the group so others can share
Jul 23 '05 #6
Els
Adrienne wrote:
Gazing into my crystal ball I observed Els <el*********@ti scali.nl> writing
in news:3p******** *************** ******@40tude.n et:
David Dorward wrote:
Date: Mon, 28 Mar 2005 16:48:18 +0100


I'm not sure, but could it be you haven't set the clock on your PC to
daylight saving time yet? In my newsreader your messages pop up with
an hour delay it seems.


It's still Standard Time, at least in the US. Daylight savings time starts
here on the first Sunday in April, April 3, 2005.


I know that, but I think David lives in the UK though.

--
Els http://locusmeus.com/
Sonhos vem. Sonhos vão. O resto é imperfeito.
- Renato Russo -
Now playing: Sweet - The Ballroom Blitz
Jul 23 '05 #7
Dan

op*********@yah oo.com wrote:
It is strange to me that html and css use different names for variables which define the same properties.


Not really very strange; HTML and CSS are different languages. The
fact that they sometimes use different words for similar meanings is no
stranger than the fact that what is called "dog" in English is "perro"
in Spanish and "chien" in French.

--
Dan

Jul 23 '05 #8
On Mon, 28 Mar 2005 17:37:23 GMT, Adrienne <ar********@sbc global.net>
wrote:
Gazing into my crystal ball I observed Els <el*********@ti scali.nl> writing
in news:3p******** *************** ******@40tude.n et:
David Dorward wrote:
Date: Mon, 28 Mar 2005 16:48:18 +0100
I'm not sure, but could it be you haven't set the clock on your PC to
daylight saving time yet? In my newsreader your messages pop up with
an hour delay it seems.

It's still Standard Time, at least in the US. Daylight savings time starts
here on the first Sunday in April, April 3, 2005.


Not in the state of Indiana ;-)

US of A, the part of the world that works by coincidence...

"Hey guys I've heard that they have developed something called
standards? Does that have anything to do with us? Is it dangerous? I
mean, it sounds like communism to recommend everyone to follow the same
set of rules?"

--
Rex
(I have lived "over there" in periods for a total of 6 out of my last 18
years of life. The people are just gorgeous, their system sucks, period)

Jul 24 '05 #9
On Tue, 29 Mar 2005 02:24:05 +0200, Jan Roland Eriksson
<jr****@newsguy .com> wrote:
On Mon, 28 Mar 2005 17:37:23 GMT, Adrienne <ar********@sbc global.net>
wrote:


[...]
It's still Standard Time, at least in the US. Daylight savings time starts
here on the first Sunday in April, April 3, 2005.


Not in the state of Indiana ;-)


At least for most parts of Indiana. Whereas most of the state is in
the (US) Eastern time zone, the northwestern and southwestern
"corners" are in the Central time zone (I suppose the northwest has
the excuse of wanting to be in the same time zone as Chicago, IL,
which is across the border and which domaiteds that region). The
parts of Indiana that are in the Central time zone do in fact observe
Daylight savings time, whereas the Eastern time zone does not. To make
things complicated, there are also a few counties in the Eastern time
zone part of the state that do observe Daylight savings time.

<http://www.mccsc.edu/time.html>

ObCIWAH: there must be a lesson about standards somewhere in there.

Nick (now living in Indiana)

--
Nick Theodorakis
ni************* *@hotmail.com
contact form:
http://theodorakis.net/contact.html
Jul 24 '05 #10

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

Similar topics

0
1676
by: Phil Powell | last post by:
The following class is supposed to produce a series of HTML dropdowns and HTML text fields based solely upon variable names for month, day and year passed into it. Those variable names will correspond to actual variables with values that are passed into the preSelect() function inside the methods (that function is called from an outside parent script included). However, upon careful inspection the global function does not globalize...
7
5663
by: Gary | last post by:
I haver a table of students - Say 100 students that I need to be able to update/delete and amend. I know I can do this one student at a time which is simple but lets say I want to see all the students on the screen at the same time, modify some, mark some for deletion and even have blank fields at the end to add a new record. In HTML which is generated I label each row and input field with a name/number combination i.e <input type=text...
4
8410
by: VK | last post by:
09/30/03 Phil Powell posted his "Radio buttons do not appear checked" question. This question led to a long discussion about the naming rules applying to variables, objects, methods and properties in JavaScript/JScript and HTML/XML elements. Without trying to get famous :-) but thinking it would be interesting to others I decided to post the following summary: 1. Variable names in JavaScript/JScript
72
5449
by: Mel | last post by:
Are we going backwards ? (please excuse my spelling...) In my opinion an absolute YES ! Take a look at what we are doing ! we create TAGS, things like <H1> etc. and although there are tools (dreamweaver and the like), they are all at the lowest level of programming (something like assembly as oposed to C++ etc.). These tools create "brain-dead" developers that constantly have to plough through tons of tags to do the simplest thing. ...
1
2429
by: cirillo_curiosone | last post by:
Hi, i'm new to javascript. I started studing it on the web few weeks ago, but still haven't been able to solve one big problem: HOT TO PASS VALUES FROM A SCRIPT VARIABLE TO A CHILD HTML GENERATED BY FUNCTION. Here'e the point: I'm writing a simple website for showing my photographs. It has a central page with many links (as many as galleries are).
46
2742
by: James Harris | last post by:
Before I embark on a new long-term project I'd appreciate your advice on how to split up long names. I would like to keep the standards for command names the same as that for variable names. Looking at the examples below, which ones seem better? Straight names echoclient lastcharoffset helloworld Internal underscores
7
1910
by: MLH | last post by:
But now here's the catch - I want to see information from an earlier record in the table. Suppose the correspondence table had these five records ID VehicleJobID OutDate OutType 1 150 11/24/06 14 2 151 10/12/06 14 3 152 11/24/06 11 4 150 06
4
1485
by: KidBrax | last post by:
Is there a way to use html as a value for a php variable while going in and out of the php tag? For example, can you do something like this? <?php $strHtml = ?> <p>somehtml here</p> <?php ; ?> so that the value of $strHtml equals "<p>somehtml here</p>"
112
5499
by: istillshine | last post by:
When I control if I print messages, I usually use a global variable "int silent". When I set "-silent" flag in my command line parameters, I set silent = 1 in my main.c. I have many functions that may print some messages. foo(...) { if (!silent)
0
9600
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,...
1
10374
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
9196
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
7651
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
6880
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();...
0
5686
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4331
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
2
3859
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3011
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.