473,403 Members | 2,293 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,403 software developers and data experts.

newbee question

my cms genrate following piece of code

-----cut-----
<div class="poslist ff425e6bb6d73fa_poslist">
<div class="poslistitem tdc ff425e6bb6d73fa">
title
<input type="hidden" name="prFsc[ff425e6bb6d73fa]" value="title" >
</div>

<div class="poslistitem tdf ff425e6bb6d73fa">
<input type=text id="prFs_ff425e6bb6d73fa" name="prFs[ff425e6bb6d73fa]"
value="" class="FORM-string ff425e6bb6d73fa">
</div></div>
-----cut-----

why I cant apply this css to above divs

div.poslist div.poslistitem div.ff425e6bb6d73fa {
width:
color:
---etc----
}

but this works ok

div.poslist div.poslistitem {
width:
color:
---etc----
}

p.s I have lot of items in my forms I use random ways to describe each
element.
Jul 21 '05 #1
7 1381
"bastardx" <ba******@S-P-A-Mop.pl> wrote:
<div class="poslist ff425e6bb6d73fa_poslist">
<div class="poslistitem tdc ff425e6bb6d73fa">
title
<input type="hidden" name="prFsc[ff425e6bb6d73fa]" value="title" >
</div>

<div class="poslistitem tdf ff425e6bb6d73fa">
<input type=text id="prFs_ff425e6bb6d73fa" name="prFs[ff425e6bb6d73fa]"
value="" class="FORM-string ff425e6bb6d73fa">
</div></div>

why I cant apply this css to above divs

div.poslist div.poslistitem div.ff425e6bb6d73fa {
Because you don't have a div with class of ff425e6bb6d73fa inside a
div with class of postlistitem.

Simplifying your code:
<div class="poslist ff425e6bb6d73fa_poslist">
<div class="poslistitem tdc ff425e6bb6d73fa"></div>
<div class="poslistitem tdf ff425e6bb6d73fa"></div>
</div>

See? You only two levels of divs, so any CSS selector for a third
level can not match.
but this works ok

div.poslist div.poslistitem {


Which correctly matches both inner divs.

Steve

--
"My theories appal you, my heresies outrage you,
I never answer letters and you don't like my tie." - The Doctor

Steve Pugh <st***@pugh.net> <http://steve.pugh.net/>
Jul 21 '05 #2
Because you don't have a div with class of ff425e6bb6d73fa inside a
div with class of postlistitem.

Simplifying your code:
<div class="poslist ff425e6bb6d73fa_poslist">
<div class="poslistitem tdc ff425e6bb6d73fa"></div>
<div class="poslistitem tdf ff425e6bb6d73fa"></div>
</div>

See? You only two levels of divs, so any CSS selector for a third
level can not match.


ok I undestand what you mean
so what about this

div.poslist div.poslistitem div.tdc div.ff425e6bb6d73fa {

}
it doesnt work under IE
is this correct?
Jul 21 '05 #3
"bastardx" <ba******@S-P-A-Mop.pl> wrote:
Steve Pugh <st***@pugh.net> wrote:
Because you don't have a div with class of ff425e6bb6d73fa inside a
div with class of postlistitem.

Simplifying your code:
<div class="poslist ff425e6bb6d73fa_poslist">
<div class="poslistitem tdc ff425e6bb6d73fa"></div>
<div class="poslistitem tdf ff425e6bb6d73fa"></div>
</div>

See? You only two levels of divs, so any CSS selector for a third
level can not match.
ok I undestand what you mean
so what about this

div.poslist div.poslistitem div.tdc div.ff425e6bb6d73fa {

}


What HTML are you using? That CSS will match
<div class="poslist">
<div class="poslistitem">
<div class="tdc">
<div class="ff425e6bb6d73fa">
... this div ...
</div>
</div>
</div>
</div>
it doesnt work under IE
is this correct?


Don't know. If your have HTML like that and if IE is not applying your
CSS then IE has gotten something wrong.

Steve

--
"My theories appal you, my heresies outrage you,
I never answer letters and you don't like my tie." - The Doctor

Steve Pugh <st***@pugh.net> <http://steve.pugh.net/>
Jul 21 '05 #4
What HTML are you using? That CSS will match
<div class="poslist">
<div class="poslistitem">
<div class="tdc">
<div class="ff425e6bb6d73fa">
... this div ...
</div>
</div>
</div>
</div>
it doesnt work under IE
is this correct?


Don't know. If your have HTML like that and if IE is not applying your
CSS then IE has gotten something wrong.

I think I understood my mistake
my html looks exacly like that
<div class="poslist ff425e6bb6d73fa_poslist">
<div class="poslistitem tdc ff425e6bb6d73fa"> SOME TEXT </div>
<div class="poslistitem tdf ff425e6bb6d73fa"></div>
</div>
and i thought that I can apply my css to "SOME TEXT" like that:
div.poslist div.poslistitem div.tdc div.ff425e6bb6d73fa {
font-size:12px;
}
Jul 21 '05 #5
"bastardx" <ba******@S-P-A-Mop.pl> wrote:
I think I understood my mistake
my html looks exacly like that <div class="poslist ff425e6bb6d73fa_poslist">
<div class="poslistitem tdc ff425e6bb6d73fa"> SOME TEXT </div>
<div class="poslistitem tdf ff425e6bb6d73fa"></div>
</div> and i thought that I can apply my css to "SOME TEXT" like that:
div.poslist div.poslistitem div.tdc div.ff425e6bb6d73fa {
font-size:12px;
}


div.poslistitem.tdc.ff425e6bb6d73fa { }
will select the SOME TEXT div and the following div (as they have
identical classes).

Steve

--
"My theories appal you, my heresies outrage you,
I never answer letters and you don't like my tie." - The Doctor

Steve Pugh <st***@pugh.net> <http://steve.pugh.net/>
Jul 21 '05 #6
Steve Pugh wrote:
"bastardx" <ba******@S-P-A-Mop.pl> wrote:
<div class="poslistitem tdc ff425e6bb6d73fa"> SOME TEXT </div>
<div class="poslistitem tdf ff425e6bb6d73fa"></div>


div.poslistitem.tdc.ff425e6bb6d73fa { }
will select the SOME TEXT div and the following div (as they have
identical classes).


Nope. One has class "tdc" and the other "tdf".
--
Johannes Koch
In te domine speravi; non confundar in aeternum.
(Te Deum, 4th cent.)
Jul 21 '05 #7
Johannes Koch <ko**@w3development.de> wrote:
Steve Pugh wrote:
"bastardx" <ba******@S-P-A-Mop.pl> wrote:
<div class="poslistitem tdc ff425e6bb6d73fa"> SOME TEXT </div>
<div class="poslistitem tdf ff425e6bb6d73fa"></div>


div.poslistitem.tdc.ff425e6bb6d73fa { }
will select the SOME TEXT div and the following div (as they have
identical classes).


Nope. One has class "tdc" and the other "tdf".


So they do.

(This should serve as an example of why meaningful class names are
more useful...)

Steve

--
"My theories appal you, my heresies outrage you,
I never answer letters and you don't like my tie." - The Doctor

Steve Pugh <st***@pugh.net> <http://steve.pugh.net/>
Jul 21 '05 #8

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

Similar topics

3
by: Newbee | last post by:
Hi ! Let's say that this is the folder on the server: /web/firstDir/secondDir/images/image.gif where i have stored my pictures. I have tryed with apsolute and relative paths but i can't display...
2
by: Newbee Adam | last post by:
some said that .NET app can run on any program where rutime exists. What is "runtime" in this sense? will I have to install runtime or .net framework or .NET support on an xp machine for a...
4
by: PerryC | last post by:
All, 1. Do the following codes seem ok? 2. If so, then how do I pull the value of YOE1 and YOE2 into my report? (to do some further calculations) ...
2
by: Martin Hvidberg | last post by:
Dear list I have found a declaration like this: #include <stdio.h> #include <stdlib.h> #include <string.h> #include <time.h> #include <math.h> #include "ectemp.h"
0
by: valmir cinquini | last post by:
i'm developing a faq session of our website and I'm facing some problems handling xml files and DataSet relations First off all, here's the structure of my xml file: <?xml version="1.0"?>...
9
by: EMW | last post by:
I have created a page in aspx and after a click on a button, a new page should open. How is this possible? I tried it doing it like in vb.NET with opening a new form, but it doesn't work. rg,...
1
by: Mark Fink | last post by:
Hi there, unfortunately I am new to Jython and my "Jython Essentials" book is still in the mail. I looked into the Jython API Doc but could not find the information. I am porting a Python...
2
by: IchBin | last post by:
I am trying to clean up my code. I have run it through tidy and now have the code below. The problem is that anytime I select a radio button I get the following error: Forbidden You don't have...
2
by: Mel | last post by:
I have a selection box with 3 values. what i need is to pass 3 urls to a function that has a switch statement and based on the selection index goes on one of the tree urls. Question is how do i...
0
by: Martin Arvidsson, Visual Systems AB | last post by:
Hi! I have a couple of newbee questions. I have a .aspx page with a couple of TextBoxes and a submit button. Now... When i press the submitbutton i want the data in the TextBoxes to be...
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: 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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
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
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
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,...
0
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...

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.