473,511 Members | 16,983 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

css selectors help

hey all,
can someone please show me how to select and the only the first cell of the
first row

i thought it would be something like:

#tableId tr td

thanks,
rodchar
Jul 17 '08 #1
3 1061
">" means any child (vs descendant), so it should select all td's under
#tableId

you probably want:

#tableId + tr + td


-- bruce (sqlwork.com)
"rodchar" wrote:
hey all,
can someone please show me how to select and the only the first cell of the
first row

i thought it would be something like:

#tableId tr td

thanks,
rodchar
Jul 17 '08 #2
On Jul 17, 9:51 pm, rodchar <rodc...@discussions.microsoft.comwrote:
hey all,
can someone please show me how to select and the only the first cell of the
first row

i thought it would be something like:

#tableId tr td

thanks,
rodchar
give <trsome id like < tr id="test"and get its first child, your
required td w'd be first or zeroth indexed child in case of IE and
first or indexed 1 in case of Firefox.
Jul 18 '08 #3
am i doing something wrong, it doesn't seem to be working for me?

http://pastebin.com/m3f51d80c
"bruce barker" wrote:
">" means any child (vs descendant), so it should select all td's under
#tableId

you probably want:

#tableId + tr + td


-- bruce (sqlwork.com)
"rodchar" wrote:
hey all,
can someone please show me how to select and the only the first cell of the
first row

i thought it would be something like:

#tableId tr td

thanks,
rodchar
Jul 20 '08 #4

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

Similar topics

1
2609
by: Tony Benham | last post by:
I have been getting to grips with css recently (very slowly), and one area I have a problem is when to use class selectors or id selectors. Are there any guidelines when to use each type ? The key...
11
2190
by: Sue Sims | last post by:
From <URL: http://www.w3.org/TR/CSS21/selector.html#id-selectors > I find the following text: "What makes attributes of type ID special is that no two such attributes can have the same...
3
2046
by: TheMartian | last post by:
Having fun with using contextual selectors with tables and links In this very simplified version of what I am doing, I want to apply a specific style to all <td> tags, and the <a> tag in a single...
18
2093
by: news.pandora.be | last post by:
I tried everything. I even tested it in combination with opera and mozilla. (I use IE 6 mostly) It's reduced to the simple example below. Please tell me what is wrong with my understaning of...
4
4235
by: Andy Fish | last post by:
hi, I am using descendent selectors to format cells within a table according to the css class of the table. However, when using nested tables, it seems to pick up the outer matching rule rather...
7
1567
by: Biguana | last post by:
Hi, Apologies in advance for a newbie question, but I'm trying to decipher css stuff, I can't find a direct parallel in web tutorials, and I'm not sure what to search on. My problem is that...
6
1882
by: Rhino | last post by:
What's the simplest way to determine which, if any, of my selectors are not needed in a given stylesheet? I have a small number of HTML pages that share two stylesheets; one stylesheet is for...
7
4286
by: Dan | last post by:
Hi, IE 7 does not seem to like child selectors for lists. I couldn't find anything addressing this with google search. Example of problem-- If I want to apply the color red to all ordered list...
7
2656
by: John Dann | last post by:
I'm unclear as to how best to use what I'm terming the top-level CSS selectors, by which I mean selectors like *, html and body. I'm coming at this from trying to understand how best to set font...
5
1739
by: Nathan Sokalski | last post by:
I'm not sure if this is the right place to ask this question, but I wasn't sure where else to go. I have a table made of the following tags: <table class="myclass"> <tbody> <tr><td>.</td></tr>...
0
7245
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
7144
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...
0
7356
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
7427
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
7085
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...
1
5069
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
4741
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
1577
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 ...
1
785
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.