|
| |
|
|
rdouglass
Posts: 9280 From: Biddeford, ME USA Status: offline
|
What's wrong with this CSS? - 1/27/2006 10:14:59
Hi All, Can't seem to get this to work with FF. Works fine with IE. ...
.tdHeaderClass
{
background: #E3EDD9;
padding-left: 2px;
border-top: 1px solid #000000;
border-bottom: 1px solid #000000;
border-left: 1px solid #000000;
font-weight: bold;
font-family: Arial;
color: green;
FONT-SIZE: 11px;
}
.tdClass1
{
background: #E3EDD9;
padding-left: 2px;
border-bottom: 1px solid #000000;
border-left: 1px solid #000000;
font-family: Arial;
FONT-SIZE: 11px;
}
.tdClass0
{
background: #FFFFFF;
padding-left: 2px;
border-bottom: 1px solid #000000;
border-left: 1px solid #000000;
font-family: Arial;
FONT-SIZE: 11px;
}
... I'm using it like so: <td nowrap class="tdClass1"> Any thoughts? EDIT: I can use the same parameters inline with no issues.
< Message edited by rdouglass -- 1/27/2006 10:21:32 >
_____________________________
Don't take you're eye off your final destination. ASP Checkbox Function Tutorial.
|
|
|
|
drogers
Posts: 142 Joined: 5/7/2004 Status: offline
|
RE: What's wrong with this CSS? - 1/27/2006 12:07:37
Can you give us a link example? What isn't working? Is it not applying the styles or applying them incorrectly?
|
|
|
|
rdouglass
Posts: 9280 From: Biddeford, ME USA Status: offline
|
RE: What's wrong with this CSS? - 1/27/2006 12:19:43
quote:
Can you give us a link example? What isn't working? Is it not applying the styles or applying them incorrectly? Sorry, can't give a link at the moment but it doesn't apply any style at all but this inline works fine: <td nowrap style='background: #E3EDD9; padding-left: 2px; border-bottom: 1px solid #000000; border-left: 1px solid #000000; font-family: Arial; FONT-SIZE: 11px; font-weight: bold;'> I'll see if I can build a quick example.
_____________________________
Don't take you're eye off your final destination. ASP Checkbox Function Tutorial.
|
|
|
|
c1sissy
Posts: 5084 Joined: 7/20/2002 From: NJ Status: offline
|
RE: What's wrong with this CSS? - 1/27/2006 12:38:51
It could be something simple up the line or down the line causing the problem. Have you tried runing the code through the validator to see if it shows up anything? It looks ok, though I dont use tables (really should learn them with css etc..) I prefer to use the divs. Anyhow, I dont' see anything wrong with the styles. One thing, I believe that your font should be in small letters. I don't think that would do anything, but it is worth a try, Oh, I think also after looking again, it shold be: <td class="tdClass1"> Try that and see what happens.
_____________________________
Deb-aka-c4Ksissy high panjandurum and alpha female of the silverback tribe As decreed by Jesper 5-24-2003. The only stupid question is... the one that is never asked!! http://directory.css-styling.com http://fmsforum.com http://positioniseverything.net/ http://www.tanfa.co.uk/
|
|
|
|
drogers
Posts: 142 Joined: 5/7/2004 Status: offline
|
RE: What's wrong with this CSS? - 1/27/2006 12:44:37
I didn't see anything wrong with it, that's why I asked. I hate it when my CSS cascades it's way into a problem. Have you tried giving that code importance over the rest?
|
|
|
|
rdouglass
Posts: 9280 From: Biddeford, ME USA Status: offline
|
RE: What's wrong with this CSS? - 1/27/2006 15:00:54
quote:
<td class="tdClass1"> So do you think the 'nowrap' caused the issue? quote:
I hate it when my CSS cascades it's way into a problem. I thought that too but I did put that CSS at the very bottom of my <style> section. That is the way CSS's hierarchy works doesn't it? Last item gets preference over first, correct? Either way, I did get around it using inline style. Not a biggie to change it in the future since it's all DB driven in ASP so I only have to change it in one place if the style needs adjustment. Thanks to both of you for the ideas.
_____________________________
Don't take you're eye off your final destination. ASP Checkbox Function Tutorial.
|
|
|
|
c1sissy
Posts: 5084 Joined: 7/20/2002 From: NJ Status: offline
|
RE: What's wrong with this CSS? - 1/28/2006 2:35:04
quote:
So do you think the 'nowrap' caused the issue? I think it is possible, but with tables it could be different. It would be nice to solve this for future reference for others. At least though you have decided to go with an inline, and as long as it won't be a problem then you should be ok changing it in the future!
_____________________________
Deb-aka-c4Ksissy high panjandurum and alpha female of the silverback tribe As decreed by Jesper 5-24-2003. The only stupid question is... the one that is never asked!! http://directory.css-styling.com http://fmsforum.com http://positioniseverything.net/ http://www.tanfa.co.uk/
|
|
|
|
drogers
Posts: 142 Joined: 5/7/2004 Status: offline
|
RE: What's wrong with this CSS? - 1/30/2006 9:58:30
Rdouglas, I've seen you mention quite a few times that you basically create dynamic database driven style sheets using ASP. Could you offer up a primer on how this is done? I've been writing ASP code for a number of years now but just recently got into CSS. I do a lot of database work and am currently working on an ambitious web developer CMS where user customization is the key focus. I get the idea that database driven CSS is the way to go, but I want to implement it correctly. Any general assistance or resources you can provide would be appreciated.
|
|
|
|
rdouglass
Posts: 9280 From: Biddeford, ME USA Status: offline
|
RE: What's wrong with this CSS? - 1/31/2006 8:27:51
quote:
I get the idea that database driven CSS is the way to go, I'm not exactly sure it's *the* way to go but it works well for me in lots of situations. As to a primer, essentially I work a lot with includes so for me it was a natural extension to use the same theory with a stylesheet. First, I figure the types of things (from a stylesheet perspective) I'd want to alter on a page and build a DB table with fields for each of those style item values. Then I use a DB call in a common include file. Something like this: mySQL = "SELECT * FROM qryThemeData WHERE themeID =" & themeID
set conntemp=server.createobject("adodb.connection")
conntemp.open myDSN
set rstemp=conntemp.execute(mySQL)
IF rstemp.eof THEN
Call CloseAll
response.write "No records matched<br>"
response.write mySQL & "<br>So cannot build content."
'response.end
ELSE
themeArray = rstemp.getrows
Call CloseAll
FOR q = 0 TO ubound(themeArray,2)
IF trim(themeArray(0,q)&"") > "" THEN
themeName = themeArray(2,q)
themeBody = themeArray(3,q)
themeDarkBackColor = themeArray(4,q)
themeMedBackColor = themeArray(5,q)
themeLightBackColor = themeArray(6,q)
themeMenuMainColor = themeArray(7,q)
themeMenuHoverColor = themeArray(8,q)
themeMenuFontColor = themeArray(9,q)
themeMenuFontHoverColor = themeArray(10,q)
themeMainTableColor = themeArray(11,q)
themeSeparatorColor = themeArray(12,q)
themeLinkColor = themeArray(13,q)
themeLinkHoverColor = themeArray(14,q)
themeLinkBackColor = themeArray(15,q)
themeLinkBackHoverColor = themeArray(16,q)
themeLink2Color = themeArray(17,q)
themeLink2HoverColor = themeArray(18,q)
themeLink2BackColor = themeArray(19,q)
themeLink2BackHoverColor = themeArray(20,q)
themeImageFolder = themeArray(21,q)
themeDescr = themeArray(22,q)
END IF
NEXT
END IF (Of course I DIM all variables and I set "themeID" as a global variable.) Then I'm able to use these in a file I call style.asp like so: <%="<style type=" & CHR(034) & "text/css" & CHR(034) & ">"%>
body
{
background-color: <%=themeBody%>;
}
.myDarkBackground
{
background-color: <%=themeDarkBackColor%>;
}
.myMedBackground
{
background-color: <%=themeMedBackColor%>;
}
.myLightBackground
{
background-color: <%=themeLightBackColor%>;
}
.myLineColor
{
background-color: <%=themeSeparatorColor%>;
}
.myMainTableColor
{
background-color: <%=themeMainTableColor%>;
}
a:link
{
background-color: <%=themeLinkBackColor%>;
color: <%=themeLinkColor%>;
text-decoration: none;
}
a:visited
{
background-color: <%=themeLinkBackColor%>;
color: <%=themeLinkColor%>;
text-decoration: none;
}
a:hover
{
background-color: <%=themeLinkBackHoverColor%>;
color: <%=themeLinkHoverColor%>;
text-decoration: none;
}
<%="</style>"%> and in the pages I want to use this style sheet in, I use an include like so: <!-- #include file="includes/style.asp" --> Now I can just make changes to my "themes" using a little form page that edits these values for me. Not really that far out from a standard way of implementing a stylesheet but I can use similar layouts and change color schemes very quickly. That help?
_____________________________
Don't take you're eye off your final destination. ASP Checkbox Function Tutorial.
|
|
|
|
rdouglass
Posts: 9280 From: Biddeford, ME USA Status: offline
|
RE: What's wrong with this CSS? - 1/31/2006 8:29:13
quote:
nowrap is deprecated. Wasn't aware of that. Thanks.
_____________________________
Don't take you're eye off your final destination. ASP Checkbox Function Tutorial.
|
|
|
|
drogers
Posts: 142 Joined: 5/7/2004 Status: offline
|
RE: What's wrong with this CSS? - 1/31/2006 13:09:55
Solid Gold. Thanks.
|
|
New Messages |
No New Messages |
Hot Topic w/ New Messages |
Hot Topic w/o New Messages |
Locked w/ New Messages |
Locked w/o New Messages |
|
Post New Thread
Reply to Message
Post New Poll
Submit Vote
Delete My Own Post
Delete My Own Thread
Rate Posts
|
|
|