472,973 Members | 2,408 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,973 software developers and data experts.

What does "th.locked" mean?

I have inherited a stylesheet at work, with the designer no longer
working here.

In an external stylesheet it says:
thead th, thead th.locked
{
position:relative;
}

What does it mean? That for all "THEADs" and "THs" and "THs that are
of class 'locked'" to position relative?

Would

thead, th
{
position:relative;
}

do the same thing?

Is "th.locked" necessary?

Thanks,
Ann

Feb 14 '06 #1
4 5570
Giggle Girl wrote:
thead th, thead th.locked
{
position:relative;
}

What does it mean? That for all "THEADs" and "THs" and "THs that are
of class 'locked'" to position relative?
No, it assigns position:relative to all such TH elements that appear
inside a THEAD element
Is "th.locked" necessary?


Generally, no, and probably the code has some redundancy. But it is
impossible to say this for sure without knowing all the relevant facts.
The use of a selector like thead th.lock (which has higher specificity
than thead th) _might_ matter in the cascade.

Then again, the whole rule looks odd. Why use a table _and_ positioning?
Feb 14 '06 #2
So "locked" a "keyword" is CSS?

It is not some made-up name the designer created?

Thanks,
Ann

Feb 14 '06 #3
Giggle Girl wrote:
So "locked" a "keyword" is CSS?

It is not some made-up name the designer created?


No, it *isn't* a keyword. It's after a period, which means that it will
be used to select elements having class="locked"--in particular, in this
situation:

<thead><th class="locked">

You need to review the rules for what selectors mean--you seem to be
confusing the respective meanings of spaces, commas, and periods in a
selector.
Feb 14 '06 #4
Giggle Girl wrote:
So "locked" a "keyword" is CSS?
No.
It is not some made-up name the designer created?


It's a class name, so yes it was invented by a designer.

th.locked is the CSS selector for the HTML <th class="locked">.

Please quote the message you are replying to. Not everyone will have
acopy of the previous messages in the thread so you post will make
little sense to them.

Steve

Feb 14 '06 #5

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

Similar topics

2
by: Jack | last post by:
I have a form that has few text boxes to input. However, after saving, if the user comes back to the same form, then the input boxes should be locked. I would like to know whether this can be...
4
by: Zorpiedoman | last post by:
This evaluates to true, why? chr(254) = "th" -- --Zorpie
1
by: amindi | last post by:
Hi, I wrote a VB6 program to read some data records from a Ms Access database and to write them into a SQL server database.(I use Ms Access 2000 and SQL server 2000).After reading each record in...
2
by: CWogksch | last post by:
Hello, Everyone... My name is Chris Wogksch. I have a point of sale application developed in VB6 using MS Access 2003 as the database. I've been running versions of this app for over eight...
0
by: CWogksch | last post by:
Hello, Everyone... My name is Chris Wogksch. I have a point of sale application developed in VB6 using MS Access 2003 as the database. I've been running versions of this app for over eight...
5
by: Glen Buell | last post by:
Hi all, I have a major problem with my ASP.NET website and it's SQL Server 2005 Express database, and I'm wondering if anyone could help me out with it. This site is on a webhost...
2
by: Eric Layman | last post by:
Hi, I have the following script below. I intend to have a dynamic array of non fixed size set rsseats = conn.execute("select * from seats") Dim arr(1) response.write ubound(arr) do while...
2
by: boliches | last post by:
I have a form within my database which On Open (event procedure) will make many calculations and enter the results in text boxes on the page of the form (I have 2 tabs on this particular form). My...
1
by: =?Utf-8?B?R29yZG9uUw==?= | last post by:
Hello, I am unsure which group this should go under so have placed it on the general, if anybody can suggest a more appropriate group that would be great. I have a problem whereby if I update...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: Aliciasmith | last post by:
In an age dominated by smartphones, having a mobile app for your business is no longer an option; it's a necessity. Whether you're a startup or an established enterprise, finding the right mobile app...
4
NeoPa
by: NeoPa | last post by:
Hello everyone. I find myself stuck trying to find the VBA way to get Access to create a PDF of the currently-selected (and open) object (Form or Report). I know it can be done by selecting :...
3
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be using a very simple database which has Form (clsForm) & Report (clsReport) classes that simply handle making the calling Form invisible until the Form, or all...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM) Please note that the UK and Europe revert to winter time on...
3
by: nia12 | last post by:
Hi there, I am very new to Access so apologies if any of this is obvious/not clear. I am creating a data collection tool for health care employees to complete. It consists of a number of...
0
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be focusing on the Report (clsReport) class. This simply handles making the calling Form invisible until all of the Reports opened by it have been closed, when it...
3
by: GKJR | last post by:
Does anyone have a recommendation to build a standalone application to replace an Access database? I have my bookkeeping software I developed in Access that I would like to make available to other...

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.