navigation
a webmaster learning community
     Home    Register     Search      Help      Login    
Sponsors

Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions.

Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.

Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax

Search Forums
 

Advanced search
Recent Posts

 Todays Posts
 Most Active posts
 Posts since last visit
 My Recent Posts
 Mark posts read

Microsoft MVP

 

CSS frustration

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> Cascading Style Sheets >> CSS frustration
Page: [1]
 
slbergh

 

Posts: 322
Joined: 11/8/2002
From: Iowa
Status: offline

 
CSS frustration - 7/8/2003 14:42:49   
I' ve run into a snag I can' t seem to figure out. I' m using one style sheet on my site. On most of my pages, everything displays fine. On a couple containing ASP code, however, my fonts are displaying at the wrong size. I can' t seem to find where the problem is. Any thoughts?

Displays properly
Messed up font

_____________________________

Digital data lasts forever...or 5 years, whichever comes first!
abbeyvet

 

Posts: 5095
From: Kilkenny Ireland
Status: offline

 
RE: CSS frustration - 7/8/2003 16:11:32   
Have just had a very quick look and the only thing that jumps out at me is that you have this at the start of your stylesheet:

<style type=" text/css" >{ }

and this at the end:

-->
</STYLE>


They should not be in there.

Also in the ' wrong' page you have formatting applies locally to the text in the big table, so that will override the stylesheet.



I don' t know if it will solve the problem, but try removing them. Will take another look later and see if I can find anything else.

_____________________________

Katherine

:: InKK Design :: InKK Domains

(in reply to slbergh)
slbergh

 

Posts: 322
Joined: 11/8/2002
From: Iowa
Status: offline

 
RE: CSS frustration - 7/9/2003 16:07:00   
I removed the style tag from my style sheet, but it still didn' t work. I suppose until I figure it out, I could always use inline formatting on that page...

_____________________________

Digital data lasts forever...or 5 years, whichever comes first!

(in reply to slbergh)
bobby

 

Posts: 11394
Joined: 8/15/1969
From: Seattle WA USA
Status: offline

 
RE: CSS frustration - 7/9/2003 16:53:23   
it looks like you have a <font> tags in the table, those will override the CSS (as Kathrine stated)

Also, you don' t have any <p> tags in the table data, so there is no tag for the CSS to reference a style... youmight add some <p class=" content" > or other applicable paragraph tag to the script code...

BTW - Kathrine, love the new avatar! :)

_____________________________

If con is the opposite of pro, is Congress the opposite of progress?


:)

(in reply to slbergh)
slbergh

 

Posts: 322
Joined: 11/8/2002
From: Iowa
Status: offline

 
RE: CSS frustration - 7/10/2003 15:46:01   
OK, I' ve cleaned up the font tags, added my class and it' s STILL displaying too large! I' m at a complete loss for what to do now.

_____________________________

Digital data lasts forever...or 5 years, whichever comes first!

(in reply to slbergh)
Shirley

 

Posts: 3126
Joined: 1/8/1999
From: Omaha, Ne USA
Status: offline

 
RE: CSS frustration - 7/10/2003 21:16:52   
href=" ../styles/main.css"

href=" http://www.ehs.iastate.edu/styles/main.css"

are these actually going to the same style sheet?

_____________________________


Everything But Cake


(in reply to slbergh)
gorilla

 

Posts: 2974
From: Denmark
Status: offline

 
RE: CSS frustration - 7/11/2003 1:26:47   
quote:

http://www.ehs.iastate.edu/styles/main.css
is the style sheet yes?

if so you' re using invalid syntax for your a:active.

quote:

a:active {
font-size: small;
text-decoration: underline;
color: #808080;
font-family: Verdana;
font-style: bold;}



bold is incorrect

I think you meant:

font-weight: bold;

font-style takes the following values:



  • normal
  • italic
  • oblique
  • inherit


I' m afraid that you seem to have committed the cardinal crime of using your common sense :)

There' s a lot of useful info here:

http://www.w3.org/TR/REC-CSS2/fonts.html#propdef-font-style

Nothing else leapt out at me but maybe you should validate your css at this point.

Freya

Grand high panjandurum and matriarch of the silverback tribe.

Copenhagen
Denamark
July 11th 2003

Post scriptum: I really do like your sig. :)

F

< Message edited by gorilla -- 7/11/2003 2:42:12 AM >


_____________________________

Mháircaish

Signature self-censored to protect the sensibilities of the thin-skinned :).

May we never confuse honest dissent with disloyal subversion. – Dwight D. Eisenhower



(in reply to slbergh)
slbergh

 

Posts: 322
Joined: 11/8/2002
From: Iowa
Status: offline

 
RE: CSS frustration - 7/11/2003 9:59:47   
To answer both Shirley and gorilla, yes, www.ehs.iastate.edu/styles/main.css (aka ../styles/main.css) is the style sheet I' m using.

I took care of the " font-style: bold" (what was I thinking?) and ran my page through a validator. It validates now with no problem but the page I originally posted about is STILL not displaying properly!! I' m pretty much ready to give up on it. The only other option I can see at this point is to rebuild the page (not a prospect I' m thrilled with).

Thanks for your help, though.

_____________________________

Digital data lasts forever...or 5 years, whichever comes first!

(in reply to slbergh)
Spooky

 

Posts: 26599
Joined: 11/11/1998
From: Middle Earth
Status: offline

 
RE: CSS frustration - 7/12/2003 5:10:41   
Its different because of your stated doctype.
Add the same doc type to see the result :)

_____________________________

If you arent part of the solution, then there is good money to be made prolonging the problem

§þ:)


(in reply to slbergh)
slbergh

 

Posts: 322
Joined: 11/8/2002
From: Iowa
Status: offline

 
RE: CSS frustration - 7/14/2003 9:28:42   
Spooky, you' re a genius!! I never would have caught that one!

_____________________________

Digital data lasts forever...or 5 years, whichever comes first!

(in reply to slbergh)
Page:   [1]

All Forums >> Web Development >> Cascading Style Sheets >> CSS frustration
Page: [1]
Jump to: 1





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