Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
Problem selecting elements
Old 01-02-2007, 04:52 PM Problem selecting elements
Echilon's Avatar
Novice Talker

Posts: 9
Location: England
Trades: 0
I decided to get rid of the tables on a project I'm doing and replace them with DIVs. The page I'm working on can be seen at http://izeit.nu/releases/1.5/index.p...nts&act=manage . The problem is that the elements in the top box aren't getting styled, even though they're in a table with a class of .niceform, and I've styled the elements of .niceform. They used to be in a <td>, inside a table of class .inputtable. Can anyone help me with how to apply the styles in the stylesheet?
Echilon is offline
Reply With Quote
View Public Profile Visit Echilon's homepage!
 
 
Register now for full access!
Old 01-02-2007, 05:01 PM Re: Problem selecting elements
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
I thought you said you were getting RID of tables ???

I suggest you first run your code thru a validator. You have an unclosed <div> which will cause you problems as well as some improper nesting.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 01-02-2007, 05:15 PM Re: Problem selecting elements
vangogh's Avatar
Post Impressionist

Latest Blog Post:
Why Responsive Design?
Posts: 10,815
Name: Steven Bradley
Location: Boulder, Colorado
Trades: 0
Could you be more specific about which elements are giving you problems? I looked at a few things in the top box, but I was unable to find any css for the classes and ids you've placed on the elements.

Could you pick one of the elements and maybe paste the code here along with some of the surrounding code and the css associated with the elements?
__________________
l Search Engine Friendly Web Design |
Please login or register to view this content. Registration is FREE

l Tips On Marketing, SEO, Design, and Development |
Please login or register to view this content. Registration is FREE

l
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
vangogh is offline
Reply With Quote
View Public Profile Visit vangogh's homepage!
 
Old 01-03-2007, 06:00 AM Re: Problem selecting elements
Echilon's Avatar
Novice Talker

Posts: 9
Location: England
Trades: 0
Quote:
Originally Posted by vangogh View Post
Could you be more specific about which elements are giving you problems? I looked at a few things in the top box, but I was unable to find any css for the classes and ids you've placed on the elements.

Could you pick one of the elements and maybe paste the code here along with some of the surrounding code and the css associated with the elements?
The labels at the top, and most of the other elements inside the first form should be styled, but they're not getting styled. I've corrected the errors found by the validator, but they weren't related to what I'm trying to do. The CSS for the elements is in main.css, near the bottom of the file.
Echilon is offline
Reply With Quote
View Public Profile Visit Echilon's homepage!
 
Old 01-04-2007, 01:37 AM Re: Problem selecting elements
vangogh's Avatar
Post Impressionist

Latest Blog Post:
Why Responsive Design?
Posts: 10,815
Name: Steven Bradley
Location: Boulder, Colorado
Trades: 0
Thanks. I think the problem is you don't need all the stuff before label in the css.

I see you have this in the css:

* html .niceform .checks label, * html .niceform.checks label

I'm not sure why you have the same thing listed twice for one, but when I changed it to:

label {

}

the styles took effect. At least they did for me in Firefox. I don't think what you have is going to do what you want, but once you see what the css is doing I'm sure you can modify it to how you want.

Let me know if that works and if not I'll be happy to look again.
__________________
l Search Engine Friendly Web Design |
Please login or register to view this content. Registration is FREE

l Tips On Marketing, SEO, Design, and Development |
Please login or register to view this content. Registration is FREE

l
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
vangogh is offline
Reply With Quote
View Public Profile Visit vangogh's homepage!
 
Old 01-04-2007, 04:41 AM Re: Problem selecting elements
Echilon's Avatar
Novice Talker

Posts: 9
Location: England
Trades: 0
I've sorted the problem now, thanks for your help
Echilon is offline
Reply With Quote
View Public Profile Visit Echilon's homepage!
 
Reply     « Reply to Problem selecting elements
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.28852 seconds with 12 queries