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

 

[Help!] Can I place a condition on an image in CSS header?

 
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 >> [Help!] Can I place a condition on an image in CSS header?
Page: [1]
 
WakonTonka

 

Posts: 63
Joined: 6/18/2003
From: Knoxville, TN USA
Status: offline

 
[Help!] Can I place a condition on an image in CSS header? - 12/18/2003 16:35:32   
Can I place a condition on an image in CSS header so that it does NOT show on the home page, but does show on all other pages?

If so ... How do I do it?


:)

_____________________________

“The whole of science is nothing more than a refinement of everyday thinking.”
- Albert Einstein
Reflect

 

Posts: 4769
From: USA
Status: offline

 
RE: [Help!] Can I place a condition on an image in CSS ... - 12/19/2003 8:08:53   
I would on this one make a second header without the image and call that via an include call.

<edit>I am moving this to the CSS forum for a second opinion.</edit>

Brian

< Message edited by Reflect -- 12/19/2003 8:09:35 AM >


_____________________________


(in reply to WakonTonka)
c1sissy

 

Posts: 5084
Joined: 7/20/2002
From: NJ
Status: offline

 
RE: [Help!] Can I place a condition on an image in CSS ... - 12/19/2003 9:12:20   
quote:

ORIGINAL: WakonTonka

Can I place a condition on an image in CSS header so that it does NOT show on the home page, but does show on all other pages?

If so ... How do I do it?


:)


I'm not really sure if this is a correct answer or not, so you might want to wait before you test it, but why not try a class or id?

I don't know what you mean by condition, but maybe the class or id might work.

And you could do this as an inline or an embeded?

<edit> I was just thinking, why don't you use two style sheets? One for the main page and one for the rest? </edit>

< Message edited by c1sissy -- 12/19/2003 10:36:57 AM >


_____________________________

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/

(in reply to WakonTonka)
jaybee

 

Posts: 14157
Joined: 10/7/2003
From: Berkshire, UK
Status: offline

 
RE: [Help!] Can I place a condition on an image in CSS ... - 12/19/2003 13:55:59   
c1sissy

You beat me to it, was going to suggest the same thing. Two css files and just link the one you want.

Wish I could figure my header problem out as easily.

Jaybee

(in reply to c1sissy)
c1sissy

 

Posts: 5084
Joined: 7/20/2002
From: NJ
Status: offline

 
RE: [Help!] Can I place a condition on an image in CSS ... - 12/19/2003 14:19:42   
quote:

ORIGINAL: jaybee

c1sissy

You beat me to it, was going to suggest the same thing. Two css files and just link the one you want.

Wish I could figure my header problem out as easily.

Jaybee


Hey Jaybee,

you mean I actually had a good answer????! , and I actually beat somone to the drawl????? yipppee, !!!:):)

_____________________________

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/

(in reply to jaybee)
jaybee

 

Posts: 14157
Joined: 10/7/2003
From: Berkshire, UK
Status: offline

 
RE: [Help!] Can I place a condition on an image in CSS ... - 12/19/2003 14:50:19   
:) LOL!

OK, let's see if you can help with this one.

I'm only just into css (so forgive me if I'm missing something really obvious) and have set up a global style sheet for all the formatting and it works great. Dead chuffed me! :)

Have 133 pages on the site so will take a while to get it all changed before I upload.

Now, problem. I have a logo.... and footers. I currently use shared borders. I've got round the left border by using margins. So fine there.

I decided to do away with shared borders top and bottom for all sorts of reasons. Can't put the logo in the .css as it's right justified and that isn't compatible with earlier browsers (according to W3C).

Tried a FP template, works but doesn't auto update all the pages when you do a change so that's out.

Then looked at include. When I included the page, although it worked, I got a Bot....... trying to avoid Bots.

So, what's the best way to get my header and footer right justified, viewable in all browsers in the right place and no bots?

(in reply to c1sissy)
c1sissy

 

Posts: 5084
Joined: 7/20/2002
From: NJ
Status: offline

 
RE: [Help!] Can I place a condition on an image in CSS ... - 12/19/2003 15:28:39   
quote:

ORIGINAL: jaybee

:) LOL!

OK, let's see if you can help with this one.

I'm only just into css (so forgive me if I'm missing something really obvious) and have set up a global style sheet for all the formatting and it works great. Dead chuffed me! :)

Have 133 pages on the site so will take a while to get it all changed before I upload.

Now, problem. I have a logo.... and footers. I currently use shared borders. I've got round the left border by using margins. So fine there.

I decided to do away with shared borders top and bottom for all sorts of reasons. Can't put the logo in the .css as it's right justified and that isn't compatible with earlier browsers (according to W3C).

Tried a FP template, works but doesn't auto update all the pages when you do a change so that's out.

Then looked at include. When I included the page, although it worked, I got a Bot....... trying to avoid Bots.

So, what's the best way to get my header and footer right justified, viewable in all browsers in the right place and no bots?

Not sure, I also am just learning this, about 11weeks into it? something like that.

Did you try putting it into a div? Also what about using margins, I'm sure that you can use them for this as well?

Here try this article and see how far you get with it. I searched for something to try to help you out a tad, I think that this just might help you.

_____________________________

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/

(in reply to jaybee)
skip

 

Posts: 177
Joined: 12/9/2001
From: Missouri USA
Status: offline

 
RE: [Help!] Can I place a condition on an image in CSS ... - 12/19/2003 22:44:11   
quote:

Then looked at include. When I included the page, although it worked, I got a Bot....... trying to avoid Bots.

why avoid bots?
just curious, are they bad?

_____________________________

skip

(in reply to c1sissy)
jaybee

 

Posts: 14157
Joined: 10/7/2003
From: Berkshire, UK
Status: offline

 
RE: [Help!] Can I place a condition on an image in CSS ... - 12/20/2003 7:11:08   
Skip,

No they're not bad I just want to stay away from FP specials wherever possible so that I can port the site anywhere without worrying about FP extensions.

(in reply to skip)
jaybee

 

Posts: 14157
Joined: 10/7/2003
From: Berkshire, UK
Status: offline

 
RE: [Help!] Can I place a condition on an image in CSS ... - 12/20/2003 7:15:36   
:)

C1sissy

Well thanks. Was hoping your 11 weeks as opposed to my 3 days might get me some assistance! :)

Read the page you suggested, then read several others. Then found one that is full of people who have spent months trying to put footers in and failed. Seems there are ways but they're really unreliable. They reckon that version 3 might have support for it!

Ha! Great! back to the shared borders then. :)

(in reply to jaybee)
fiachra

 

Posts: 338
Joined: 5/12/2002
From:
Status: offline

 
RE: [Help!] Can I place a condition on an image in CSS ... - 12/20/2003 8:56:57   
Use either frontpage includes or better yet real SSI tutorial on how to do SSI is here:

www.bignosebird.com

The included elements as part of the page will of course be subject to your style sheet.

_____________________________

www.peopleeatingtastyaliens.com

(in reply to jaybee)
c1sissy

 

Posts: 5084
Joined: 7/20/2002
From: NJ
Status: offline

 
RE: [Help!] Can I place a condition on an image in CSS ... - 12/20/2003 9:00:30   
quote:

ORIGINAL: jaybee

:)

C1sissy

Well thanks. Was hoping your 11 weeks as opposed to my 3 days might get me some assistance! :)

Read the page you suggested, then read several others. Then found one that is full of people who have spent months trying to put footers in and failed. Seems there are ways but they're really unreliable. They reckon that version 3 might have support for it!

Ha! Great! back to the shared borders then. :)

Dont give up!!!

I know it can be done! ( jsut don't know how!):)

I still say, put your logo in a div, then work it from there, use an image centering, but work with NN and mozilla to see how it works out.

If I get any time over the next few days before christmas I'll look through some of my books. I have one by eric meyers that is supposed to be great! And I know that I have seen in one of my books that they have centered a logo.
http://e.domaindlx.com/hwcssvu/example6.htm

In case you have not looked over these pages take a look at the one with the nested divs in it. I have a "header div" if you use this and place your logo in it, it should work! It is on a free host and I can't get in to get the exact page, but you'll know what one it is when you see it.

Also, I have a link to a css forum that I'll look for for you.

If you give up trying, I'm going to be annnnnggggrrrryyyy!:)

<edit>back with link for you. Try this and place your question or look through their archives.</edit>

< Message edited by c1sissy -- 12/20/2003 9:02:19 AM >


_____________________________

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/

(in reply to jaybee)
c1sissy

 

Posts: 5084
Joined: 7/20/2002
From: NJ
Status: offline

 
RE: [Help!] Can I place a condition on an image in CSS ... - 12/20/2003 9:23:44   
quote:

ORIGINAL: fiachra

Use either frontpage includes or better yet real SSI tutorial on how to do SSI is here:

www.bignosebird.com

The included elements as part of the page will of course be subject to your style sheet.


Note to self: Learn SSI as well,
thanks for the link Fiachra, lol, we were posting at the same time, only, mine was a tad more long winded!:)

_____________________________

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/

(in reply to fiachra)
jaybee

 

Posts: 14157
Joined: 10/7/2003
From: Berkshire, UK
Status: offline

 
RE: [Help!] Can I place a condition on an image in CSS ... - 12/20/2003 18:36:50   
Fiachra

How much brain do you think I've got here? It's working overtime trying to get to grips with XHTML and CSS, then I discover this new stuff called XSLT which is supposed to work with XML better than CSS. Now you're chucking SSI at me!

Fairy snuff. I've scanned SSI and yes it probably is the way to go but I can't cope with more than two things at a time. It's tough for an old COBOL programmer. :)

(in reply to c1sissy)
jaybee

 

Posts: 14157
Joined: 10/7/2003
From: Berkshire, UK
Status: offline

 
RE: [Help!] Can I place a condition on an image in CSS ... - 12/20/2003 18:44:19   
c1sissy

Thanks for the links. Think I went to most of those yesterday but will recheck. One of them was the one where several dozen experienced cssers were stuck completely.

Course, me being me, (never go the easy route when you can make things really tough for yourself) has an added complication of a whizzo java menu that flys around the page with you but relies on the FP bottom border for it's hook. Gotta redesign that one too.

You'll laugh.... guess what I asked my partner to get me for Christmas?

A book on PHP and MYSQL! Gotta learn that too! :)

Right, time for bed over here. Nite Nite.

(in reply to jaybee)
c1sissy

 

Posts: 5084
Joined: 7/20/2002
From: NJ
Status: offline

 
RE: [Help!] Can I place a condition on an image in CSS ... - 12/20/2003 21:38:20   
quote:

ORIGINAL: jaybee

c1sissy

Thanks for the links. Think I went to most of those yesterday but will recheck. One of them was the one where several dozen experienced cssers were stuck completely.

Course, me being me, (never go the easy route when you can make things really tough for yourself) has an added complication of a whizzo java menu that flys around the page with you but relies on the FP bottom border for it's hook. Gotta redesign that one too.

You'll laugh.... guess what I asked my partner to get me for Christmas?

A book on PHP and MYSQL! Gotta learn that too! :)

Right, time for bed over here. Nite Nite.


Jaybee, just keep trying. I'm sure that it can be done. Did you check out eric meyers sites?

If I didn't have so much to do yet for Christmas I would spend some time reading my books to find where I had seen it, but I just don't have time right now,:).

If you don't have any css books, I suggest that you get a few of them. Check out bookpool.com they have a good selection, then go to amazon with the title and you can get some really good prices. Also pricegrabber.com.

After reading Fiarcha's post I was on my way to look for online tutorials for SSI. heavy sigh, so much to learn isn't there?:)

_____________________________

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/

(in reply to jaybee)
jaybee

 

Posts: 14157
Joined: 10/7/2003
From: Berkshire, UK
Status: offline

 
RE: [Help!] Can I place a condition on an image in CSS ... - 12/21/2003 3:51:49   
Think I 've got it.... mailed you a link. Just need to test in various browsers.


Thumbnail Image
:)

Attachment (1)

(in reply to c1sissy)
c1sissy

 

Posts: 5084
Joined: 7/20/2002
From: NJ
Status: offline

 
RE: [Help!] Can I place a condition on an image in CSS ... - 12/21/2003 7:43:07   
quote:

ORIGINAL: jaybee

Think I 've got it.... mailed you a link. Just need to test in various browsers.


Thumbnail Image
:)


LOL! YIPPPPEEEEE!!
I knew you could get it!!! I got the link, and I'm thrilled for you! See, told you not to give up!

Send me a link when you get it working so that I can see it.

_____________________________

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/

(in reply to jaybee)
fiachra

 

Posts: 338
Joined: 5/12/2002
From:
Status: offline

 
RE: [Help!] Can I place a condition on an image in CSS ... - 12/21/2003 13:10:16   
I wouldn't worry too much about XML and XLST quite just yet if I were you. If you do properly formed and valid XHTML and CSS you're about 90% of the way to XML and XSLT anyway. I'd concentrate on immediately useful stuff like SSI and dare I say it PHP and PERL first after you you've got properly to grips with SSI. SSI is dead easy anyway -

Here's a link or two from the Gorilla database to get you started.

http://programminguni.com/tutorials.html

http://www.techtutorials.info/sitemap.html (you'll have to scroll a bit)

http://www.pcvoyager.com/

TTFN

F

_____________________________

www.peopleeatingtastyaliens.com

(in reply to c1sissy)
c1sissy

 

Posts: 5084
Joined: 7/20/2002
From: NJ
Status: offline

 
RE: [Help!] Can I place a condition on an image in CSS ... - 12/21/2003 21:34:30   
Thanks for the links fiachra.

I wish I had time right now to dive into them.

But, baking calls,:):):)

MMMM cookies. Lots of them.

_____________________________

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/

(in reply to fiachra)
Page:   [1]

All Forums >> Web Development >> Cascading Style Sheets >> [Help!] Can I place a condition on an image in CSS header?
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