473,387 Members | 1,812 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

Apply css class on anchor that is second child of div

I can not change html as I receiving from some other application. I have div that has 2 anchor child, by default they dnt have any Id or class or name through which I can distinguish. I can not use CSS3.0 function that has last-child thing, I can not use javascript. I know how to achieve this with jquery or js. But I am bound cant use it. nth-child is also not supported css2.1, I guess

nth-child is also not supported css2.1, I guess
Jul 30 '12 #1
4 2503
Rabbit
12,516 Expert Mod 8TB
If you can't use HTML and you can't use javascript and you can't use CSS, there's nothing left you can do.
Jul 31 '12 #2
@Rabbit
I am sorry If I am not clear in that. What I actually mean was that I need to perform this by using CSS2.1. I know how achieve this by using css3.0 or JS, but I am restricted to perform this action by using css2.1. Hope that I make it clear this time
Jul 31 '12 #3
Rabbit
12,516 Expert Mod 8TB
There's no way to do it with CSS 2 alone. As you said in your first post, nth-child is not supported. And there is no equivalent in CSS 2.
Jul 31 '12 #4
@Rabbit
Yeah I guess there won't be, specially if you have nothing to distinguish between each of these DOM which is also not a right way but where I am standing rightnow this is the only solution I can see. But if someone comes around with good idea
Jul 31 '12 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: parksch2 | last post by:
Quick question: How would I nest the apply templates on the following XML structure? /ITEM/CHILD/ITEM/CHILD/ITEM/CHILD I would first like to apply templates on /ITEM/CHILD. Within that...
12
by: Anna | last post by:
Hi all, I posted the same question this afternoon but my message isn't showing up, so I thought I'd give it another try.... in case you should see it later I apologize for posting the same...
5
by: pcPirate | last post by:
Okay, I've have a mdiparentform and only one mdichild form. My parent form has a toolbar with only one button "Open Record". When a user click on the button, a child form would be shown. My...
5
by: owais | last post by:
Hi, I have a problem, I want to implements Parent class interface methods in child class. for e.g -------------- Test1.vb ---------------- Imports System Imports System.Web.UI Imports...
2
by: Rob McKenna | last post by:
Greetings, This is my first foray into CSS and indeed my first website in general. My goal is to use a liquid(ish) design, no javascript and no tables for layout positioning. Rather foolishly I...
2
by: Lenster | last post by:
Environment --------------- Visual Studio.NET 2003 Version 7.1.3088 ..NET Framework 1.1 Version 1.1.4322 SP1 XP Professional 5.1.2600 SP2 Build 2600 Problem Description...
7
by: S. Lorétan | last post by:
Hi guys, Sorry for this stupid question, but I don't know why it isn't working. Here is my (example) code: namespace Test { class A { public string Label1; }
9
by: Anil Gupte | last post by:
After reading a tutorial and fiddling, I finally got this to work. I can now put two tables created with a DataTable class into a DataRelation. Phew! And it works! Dim tblSliceInfo As New...
3
by: daseone | last post by:
Hello, I am working on a site that uses CSS pop out menus. I am having an issue with IE7 where the first menu item shows over all other content but then everything below it goes under. It works...
4
by: Buddha | last post by:
Hello, I posted this on two forums, without too much help .. and I am kinda stuck in this. I need to refresh the parent page from the second child window which is opened by the first child and...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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...

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.