|
| |
|
|
Starhugger
Posts: 521 Joined: 4/12/2005 Status: offline
|
FP Theme Overrides CSS - 9/16/2005 21:28:51
I'm using an FP2003 theme that I created. I'm trying to use CSS to tailor the headings (h1, h2, etc.) to what I want for a page or series of pages (e.g., font size, colour, etc.). I've tried putting the specs in a separate stylesheet and linking to it. I've tried putting a <style> </style> statement in the <head> section. But the theme always overrides the style specs, at least with the heading tags. I've found that if I put the <style> statement or the link to the stylesheet AFTER the <meta name="Microsoft Theme" ...etc. tag, it will override the theme defaults in Preview. But then when I load it up in a browser or reload the page in FP, it rearranges the Head tag lines to put the theme tag last in the Head section, which then overrides any CSS specs. What am I doing wrong? Starhugger
|
|
|
|
Tailslide
Posts: 6108 Joined: 5/10/2005 From: Out here on the raggedy edge Status: offline
|
RE: FP Theme Overrides CSS - 9/17/2005 3:59:05
Also the order in which you declare the CSS matters - so you might want to try to move your stylesheet link to AFTER the MS theme thing. So it'd be like this: [code]<meta name="Microsoft Theme" content="edwhite 1011, default"> <meta name="Microsoft Border" content="tb, default"> <link rel="stylesheet" type="text/css" href="../edrxarticles.css"[>/code] If the microsoft theme thing (and I'm not sure how they work so this is a guess) contains CSS of some kind then it might override the previously mentioned Stylesheet.
_____________________________
"My strategy is so simple an idiot could have devised it" Little Blue Plane Web Design | Blood, Sweat & Rust - A Land Rover restoration project
|
|
|
|
caz
Posts: 3546 Joined: 10/10/2001 From: Somewhere south of Chester, UK Status: offline
|
RE: FP Theme Overrides CSS - 9/17/2005 4:21:39
But I thought that had been tried ?, quote:
But then when I load it up in a browser or reload the page in FP, it rearranges the Head tag lines to put the theme tag last in the Head section, which then overrides any CSS specs Which is why I suggested that here must be inline styling overiding somewhere along the line, but now it seems not. Has this actually been published to a server, or is this just happening locally? The only other thing that I can think of is that you are choosing to "Optimise code" when publishing. This is something I don't do as I vaguely remember reading that it can do strange things. In your settings you do have "preserve existing html" ticked, don't you? Sorry, as I said I have no experience of "Themes", I just regard them as templates - obviously they do more than that.
_____________________________
Do not meddle in the affairs of cats, for they are subtle and will dance, or more on your keyboard. Cheshire cat. www.doracat.co.uk I remember when it took less than 4hrs to fly across the Atlantic.
|
|
|
|
Tailslide
Posts: 6108 Joined: 5/10/2005 From: Out here on the raggedy edge Status: offline
|
RE: FP Theme Overrides CSS - 9/17/2005 4:35:36
I didn't see the bit about FP automatically putting the theme stuff after the style link - how annoying! I don't suppose it's possible to get into the theme itself and edit it is it? If Caz's suggestion doesn't work then it looks like your choices are: Dump the theme Put the particular problem style in the document head and see if it too get's overruled. If it does get overruled then you'd be stuck with using inline styling - blaagh!
_____________________________
"My strategy is so simple an idiot could have devised it" Little Blue Plane Web Design | Blood, Sweat & Rust - A Land Rover restoration project
|
|
|
|
Starhugger
Posts: 521 Joined: 4/12/2005 Status: offline
|
RE: FP Theme Overrides CSS - 9/17/2005 4:49:01
quote:
ORIGINAL: caz Has this actually been published to a server, or is this just happening locally? The only other thing that I can think of is that you are choosing to "Optimise code" when publishing. This is something I don't do as I vaguely remember reading that it can do strange things. In your settings you do have "preserve existing html" ticked, don't you? Sorry, as I said I have no experience of "Themes", I just regard them as templates - obviously they do more than that. indeed! No, I do not "optimize html" when publishing. I hadn't heard that there would be problems, but I decided I didn't want to trust it. Just sounded like a heap of problems waiting for a chance to play. Tailslide, Caz is right that I did try reordering the Head tags. It works in Preview, but FP rearranges it back when I refresh it in FP or test it in a browser. Caz, to answer your question, no I haven't published this to a server yet. Maybe that will make a difference. I did finally hook it up to my navigation, thinking maybe it would be easier for it to find the CSS that way, but it didn't make a difference when I tested it in a browser. I'll try publishing it tomorrow and see what it does. Thanks for your help and suggestions, you guys. It's awful when the blasted thing won't work and you have no one to turn to for help! Starhugger
|
|
|
|
caz
Posts: 3546 Joined: 10/10/2001 From: Somewhere south of Chester, UK Status: offline
|
RE: FP Theme Overrides CSS - 9/17/2005 5:10:08
Another thought, you are using this on the body- Oh: "ednormal" is just a style that is 10pt, Tahoma, left-aligned. And then you are styling the h1 as 24pt - maybe inheritance is giving you the 35pt result? ( As in 10+24 displaying as 35? Points can display strangely on the screen anyway)
_____________________________
Do not meddle in the affairs of cats, for they are subtle and will dance, or more on your keyboard. Cheshire cat. www.doracat.co.uk I remember when it took less than 4hrs to fly across the Atlantic.
|
|
|
|
Tailslide
Posts: 6108 Joined: 5/10/2005 From: Out here on the raggedy edge Status: offline
|
RE: FP Theme Overrides CSS - 9/17/2005 6:14:55
I wouldn't bother switching to DW - I know there are some fans here but in my opinion DW also "helps out" where you perhaps wish it wouldn't. All wysiwyg editors have their quirks - some are better than others but then some are a LOT more expensive than others! In the end, the more you do manually (in whatever editor you use) the better. If you really want control then consider switching to a HTML editor like HTML-kit (free|). There you do it all yourself but you do have a preview window so that you can see what's going on.
_____________________________
"My strategy is so simple an idiot could have devised it" Little Blue Plane Web Design | Blood, Sweat & Rust - A Land Rover restoration project
|
|
|
|
dpf
Posts: 7123 Joined: 11/12/2003 From: India-napolis Status: offline
|
RE: FP Theme Overrides CSS - 9/17/2005 9:29:30
quote:
but in my opinion DW also "helps out" where you perhaps wish it wouldn't I havent found that to be the case at all.
_____________________________
Dan
|
|
|
|
Starhugger
Posts: 521 Joined: 4/12/2005 Status: offline
|
RE: FP Theme Overrides CSS - 9/17/2005 14:46:12
quote:
ORIGINAL: jaybee There are FP themes and FP themes. If you use an FP theme and tick the styles box then FP dumps all its own CSS into the mix and there lies mayhem and disaster as you are finding out. I have one site that I originally used a theme on, then I took it off. When I was first finding out about css I noticed the tick box in the FP theme and ticked it to see what would happen. What styles box? Where would I find this? I'm not seeing anything in the Themes customization area, unless I'm looking right at it and not seeing it. quote:
I have since completely rebuilt the site without themes, using proper css rather than the Microsoft hybrid. It took me weeks but now I can maintain it easily. Sigh... I think I may be stuck with this one for the time being. I really don't have weeks to spare to shape this thing up to where it should be. I have too many other priorities, on this site and other projects. If I could just clone myself I'd be able to stay on top of all this... quote:
If you want to move to another development tool then fine but if you want to stay with FP just turn off, or better still, uninstall themes (control panel) and design it yourself or go get a template. Thanks, I'll consider that. There's a lot about FP I like. The IDEA of the themes is one of them. Unfortunately they look good "on paper" but seem to fall apart when you get them into real life. Maybe I can gradually work on creating some CSS templates and replace pages gradually. I really don't have the time to do it as a primary project, although I can see that it would make life a lot easier if I did. Clones, I tell you, CLONES!! Starhugger
|
|
|
|
scottishagate
Posts: 15 Joined: 2/6/2005 Status: offline
|
RE: FP Theme Overrides CSS - 10/5/2005 17:16:11
quote:
ORIGINAL: jaybee if you want to stay with FP just turn off, or better still, uninstall themes (control panel) Hi, jaybee. Excuse my butting in! I have switched off the Theme I was using in FP 2003, but seem to have "fragments" lying around. How do you completely uninstall themes? I can't find FP Themes in Windows Control Panel. Grateful for your help.
|
|
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
|
|
|