473,320 Members | 1,719 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,320 software developers and data experts.

Wild first descendant of element

KeredDrahcir
426 256MB
I have a division and I need to target the first element inside it but it won't always be to same. In some cases it will be a paragraph, sometimes an unordered list and sometmes an ordered list.
It is only the first one I want to target. Is there a way to do this. Something like:
Expand|Select|Wrap|Line Numbers
  1. .mydiv + *{
  2.   mystyle
  3. }
  4.  
That does work but if I put a floated div inside it doesn't like it. It's quite happy with the normal div.
Nov 5 '13 #1
0 1099

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

Similar topics

2
by: Neal D. Becker | last post by:
What is an efficient way to find the first element in a sequence meeting some condition? For example, the first number > x in a list of numbers.
2
by: Martin Magnusson | last post by:
Hi I'm traversing a std::list backwards with a reverse_iterator, and need to check for the case when the iterator points to the first element of the list. My code now looks something like the...
1
by: Mark Spencer | last post by:
Hey there, I'm running into an issue and wondered if any of you XML gurus know a solution. I'm currently using XML as a data transport mechanism between two applications and an XML schema for...
2
by: jkflens | last post by:
Hello, i convert one XML-document by using XSLT into another XML-document. First change all attributes to elements is no problem. Then i try to insert a new element into the new document by...
7
by: | last post by:
I'm using ASP.NET 2.0, C#, SQL Server 2005, and databound controls like the DataList and the GridView. Right now I'm using SqlDataSource as part of very quick and dirty site; I'm not looking to...
3
by: William Krick | last post by:
Given this XML <parent> <child name="billy"> <child name="sue"> </parent> I can use this to process each child... <xsl:for-each select="child">
1
Vixen
by: Vixen | last post by:
I'm new to the world of CSS and am stuck. I have declared the :first-line pseudo element as all but one of my first line's need the same syle. However one doesnt. I have tried assigning the color...
8
by: Aaryan123 | last post by:
Hi... I have two questions: 1) I know I can use... # shift() - which removes the first element of an array. if I do this operation twice... I get my desired result.
1
by: s481797 | last post by:
Hello, I'm having troubles with parsing my JSON object. Below you'll find my JSON string: {"email":{"invalid":"wrong email"}} I can get 'wrong email' using javascript by simply executing...
1
by: sedigh mohseni | last post by:
hi when an element is floated , browser place that to the first left or right available space and the other elements are floated around that, is this statement true? would you please notice to...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.