Democratic Underground Latest Greatest Lobby Journals Search Options Help Login
Google

HELP, please! Very basic CSS problem!

Printer-friendly format Printer-friendly format
Printer-friendly format Email this thread to a friend
Printer-friendly format Bookmark this thread
Home » Discuss » DU Groups » Computers & Internet » Website, DB, & Software Developers Group Donate to DU
 
Angry Girl Donating Member (1000+ posts) Send PM | Profile | Ignore Sun Jan-09-05 08:40 PM
Original message
HELP, please! Very basic CSS problem!
I've spent bloody *HOURS* trying to figure out what's wrong and am starting to go insane. I'm teaching myself CSS. Everything was going fine until I tried the CLASS business. Why aren't my P CLASS and SPAN CLASS working???!!! (I just know I'm going to look like a tard here....)

My web page and external stylesheet are here:

http://nightweed.com/testtemplate.html

http://nightweed.com/test.css

I'm trying to change the font and table attributes of the left sidebar, where it says "Desksets, Frames and boxes," etc.

If you view the source of testtemplate.html you'll see where I denoted what I think should be the sidebar section.

I'm also trying to change the attributes of the text ZXZXZ, which is in the upper left-hand corner underneath where the image goes).

For what it's worth, my editor is FrontPage 2002 (yes, I know it sucks but I've only just started to really dislike it, so I'm open to suggestions, as long as the solution is free).

Many thanks.
Refresh | 0 Recommendations Printer Friendly | Permalink | Reply | Top
GregD Donating Member (1000+ posts) Send PM | Profile | Ignore Mon Jan-10-05 12:57 AM
Response to Original message
1. not ignoring you, but can't quite figure out what's wrong
I copied the page and css to my site, and am messing with it.
Printer Friendly | Permalink | Reply | Top
 
Angry Girl Donating Member (1000+ posts) Send PM | Profile | Ignore Mon Jan-10-05 01:10 AM
Response to Reply #1
2. thanks so much! this has been driving me nuts!!!
Printer Friendly | Permalink | Reply | Top
 
Angry Girl Donating Member (1000+ posts) Send PM | Profile | Ignore Mon Jan-10-05 03:47 AM
Response to Reply #1
3. If this is any help....
I'm not married to that setup. It's my attempt to recreate a super-simplified version of http://store.yahoo.com/vtbear/get-well-gifts-ideas.html

And I want to be able to use CSS to control the sidebar's border and font attributes so I can change them according to holidays, for example.

I don't care *how* it's done really, as long as I can understand it. I tried looking at the source for some of vermontteddybear.com's pages and I exploded....

Thanks!
Printer Friendly | Permalink | Reply | Top
 
GregD Donating Member (1000+ posts) Send PM | Profile | Ignore Mon Jan-10-05 12:20 PM
Response to Original message
4. ok, first problem is solved.
http://www.greybearddesign.com/angrygirl/test.htm

You had:
.test { font-color: red
}

The corrected entry:
.test { color: red
}

Another issue is that if you are not careful, Front Page will assign all sorts of whacko column widths, and that has happened on your page. Do a view source and note that I adjusted your column widths to sum to 100%.

Other issues?
Printer Friendly | Permalink | Reply | Top
 
Angry Girl Donating Member (1000+ posts) Send PM | Profile | Ignore Mon Jan-10-05 03:02 PM
Response to Reply #4
5. Ah! syntax.... Thanks! But what about the sidebar?
Oh, that table thing.... Thanks for adjusting them!

But the sidebar section's attributes are still not working.... That's been the bane of my past weekend.... grrrr

Printer Friendly | Permalink | Reply | Top
 
GregD Donating Member (1000+ posts) Send PM | Profile | Ignore Mon Jan-10-05 03:21 PM
Response to Reply #5
6. what attributes are not working?
Maybe you are not telling it what you want.

Is your point that you want the text on the sidebar smaller? A darker background color as the separator between the sidebar and the main content?

Specifics please.
Printer Friendly | Permalink | Reply | Top
 
Angry Girl Donating Member (1000+ posts) Send PM | Profile | Ignore Mon Jan-10-05 03:42 PM
Response to Reply #6
7. sorry, i wasn't clear
I want to be able to control the font, background color, and the border width and/or color of the separator between sidebar and main content. Like the http://www.vermontteddybear.com folks do.

I thought if I used the SPAN CLASS around the sidebar html and then specified in the stylesheet the .sidebar attributes I wanted that I would see the changes.

But that's not working. Because now I've got the stylesheet saying that the sidebar section should have red font but it's not displaying as red., just the ordinary dark blue that the restof the text was specified to be.

So I didn't continue from there, figuring if I can't even get the font color right I shouldn't start with the separator yet.... *groan*
Printer Friendly | Permalink | Reply | Top
 
GregD Donating Member (1000+ posts) Send PM | Profile | Ignore Mon Jan-10-05 03:52 PM
Response to Reply #7
8. you didn't change the css?
Your CSS still reads:

.test { font-color: red
}
Printer Friendly | Permalink | Reply | Top
 
Angry Girl Donating Member (1000+ posts) Send PM | Profile | Ignore Mon Jan-10-05 05:28 PM
Response to Reply #8
9. duh. didn't think to update. done now.... sidebar still misbehaving
Printer Friendly | Permalink | Reply | Top
 
GregD Donating Member (1000+ posts) Send PM | Profile | Ignore Mon Jan-10-05 07:56 PM
Response to Reply #9
10. not a mindreader
In what way is it failing now? Your descriptions of what you are trying to do, and what is failing, is obscure at best. Help me understand what needs to be fixed!
Printer Friendly | Permalink | Reply | Top
 
Angry Girl Donating Member (1000+ posts) Send PM | Profile | Ignore Mon Jan-10-05 08:03 PM
Response to Reply #10
11. Huh?????
I'm totally confused now. The sidebar isn't behaving.... That was the original problem I'm having trouble with: The sidebar has instuctions to display in red font; however it is displaying in dark blue, like everywhere else.... And *that* was the original problem: the sidebar....

I've refreshed my browser (firefox), checked it even in an IE-based browser. I'm totally baffled now by your questions. Maybe I've gone insane....

?????
Printer Friendly | Permalink | Reply | Top
 
Xithras Donating Member (1000+ posts) Send PM | Profile | Ignore Tue Jan-11-05 07:35 PM
Response to Original message
12. The answer to your sidebar question
Since the other appears to be answered.

You are currently attempting to apply the style using this code:

<tr>

<!--BEGIN SIDEBAR SECTION-->
<span class="sidebar">
<td width="25%" height="141">Desksets<br>
...etc...


This won't work because of the inheritance...first you're applying your table tag (with its corresponding CSS properties), followed by your Sidebar class, and THEN your TD styles are being applied with that tag. You even apply a paragraph tag later on that adds still more CSS definition to the text.

You could fix it like this:
<tr>

<!--BEGIN SIDEBAR SECTION-->

<td width="25%" height="141">
<span class="sidebar">
Desksets<br>
...etc...

Or even by potentially reworking your CSS to allow this:

<tr>

<!--BEGIN SIDEBAR SECTION-->

<td width="25%" height="141" class="sidebar">
Desksets<br>
...etc...


Personally, I'd use the last option.
Printer Friendly | Permalink | Reply | Top
 
GregD Donating Member (1000+ posts) Send PM | Profile | Ignore Wed Jan-12-05 02:06 PM
Response to Reply #12
13. We got on IM last night and did exactly that
It's all good now
Printer Friendly | Permalink | Reply | Top
 
DU AdBot (1000+ posts) Click to send private message to this author Click to view 
this author's profile Click to add 
this author to your buddy list Click to add 
this author to your Ignore list Sun Dec 22nd 2024, 08:27 AM
Response to Original message
Advertisements [?]
 Top

Home » Discuss » DU Groups » Computers & Internet » Website, DB, & Software Developers Group Donate to DU

Powered by DCForum+ Version 1.1 Copyright 1997-2002 DCScripts.com
Software has been extensively modified by the DU administrators


Important Notices: By participating on this discussion board, visitors agree to abide by the rules outlined on our Rules page. Messages posted on the Democratic Underground Discussion Forums are the opinions of the individuals who post them, and do not necessarily represent the opinions of Democratic Underground, LLC.

Home  |  Discussion Forums  |  Journals |  Store  |  Donate

About DU  |  Contact Us  |  Privacy Policy

Got a message for Democratic Underground? Click here to send us a message.

© 2001 - 2011 Democratic Underground, LLC