Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > imagemaps and css

Reply
Thread Tools

imagemaps and css

 
 
Paul F. Johnson
Guest
Posts: n/a
 
      11-14-2003
Hi,

I've done a bit of googling to see if I can find how to do this...

Currently, I have a website in design which needs an imagemap. Now, I
already have a stylesheet setup which loads the background image for me
via

background : #dbdbdb
url("http://ahnews.music.salford.ac.uk/rn2/images/rn.jpg") no-repeat;

I've defined my image map for this banner.

As I'm loading in the banner via the stylesheet, I'd like to say which to
use the map within the stylesheet.

While there is a map, there isn't a usemap. Do I just swap one for the
other and have something like

.... no-repeat map("#logo-map");

or do I need a separate line which reads

map : url("#logo-map");

?

TTFN

Paul
 
Reply With Quote
 
 
 
 
rf
Guest
Posts: n/a
 
      11-14-2003

"Paul F. Johnson" <paul@spammersahoy!.co.uk> wrote in message
newsan.2003.11.14.11.04.16.262094@spammersahoy!. co.uk...
> Hi,
>
> I've done a bit of googling to see if I can find how to do this...
>
> Currently, I have a website in design which needs an imagemap. Now, I
> already have a stylesheet setup which loads the background image for me
> via
>
> background : #dbdbdb
> url("http://ahnews.music.salford.ac.uk/rn2/images/rn.jpg") no-repeat;
>
> I've defined my image map for this banner.


Er, banner? It's a background.

Image maps don't apply to backgrounds.

> As I'm loading in the banner via the stylesheet, I'd like to say which to
> use the map within the stylesheet.


Hmmm. It's not a banner, it's a background.

Image maps don't apply to backgrounds

> While there is a map, there isn't a usemap. Do I just swap one for the
> other and have something like


> ... no-repeat map("#logo-map");
>
> or do I need a separate line which reads
>
> map : url("#logo-map");


Read this.
http://www.w3.org/TR/html4/struct/objects.html#h-13.6

Cheers
Richard.




 
Reply With Quote
 
 
 
 
Sid Ismail
Guest
Posts: n/a
 
      11-14-2003
On Fri, 14 Nov 2003 11:04:16 +0000, "Paul F. Johnson"
<paul@spammersahoy!.co.uk> wrote:

: background : #dbdbdb
: url("http://ahnews.music.salford.ac.uk/rn2/images/rn.jpg") no-repeat;
:
: I've defined my image map for this banner.


Wont work. It is a _background_, and will render differently depending on
resolution.

Sid

 
Reply With Quote
 
Paul F. Johnson
Guest
Posts: n/a
 
      11-14-2003
Hi

On Fri, 14 Nov 2003 11:15:54 +0000, rf wrote:

> "Paul F. Johnson" <paul@spammersahoy!.co.uk> wrote in message


>> background : #dbdbdb
>> url("http://ahnews.music.salford.ac.uk/rn2/images/rn.jpg") no-repeat;
>>

> Er, banner? It's a background.


D'oh!

It must be Friday....

Thanks

TTFN

Paul
 
Reply With Quote
 
rf
Guest
Posts: n/a
 
      11-14-2003

"Sid Ismail" <(E-Mail Removed)> wrote in message
news(E-Mail Removed)...
> On Fri, 14 Nov 2003 11:04:16 +0000, "Paul F. Johnson"
> <paul@spammersahoy!.co.uk> wrote:
>
> : background : #dbdbdb
> : url("http://ahnews.music.salford.ac.uk/rn2/images/rn.jpg") no-repeat;
> :
> : I've defined my image map for this banner.
>
>
> Wont work. It is a _background_, and will render differently depending on
> resolution.


How so Sid? What does 'resolution' have to do with the rendering of a
background?

Cheers
Richard.


 
Reply With Quote
 
Sid Ismail
Guest
Posts: n/a
 
      11-14-2003
On Fri, 14 Nov 2003 11:41:52 GMT, "rf" <(E-Mail Removed)> wrote:

:
: "Sid Ismail" <(E-Mail Removed)> wrote in message
: news(E-Mail Removed)...
: > On Fri, 14 Nov 2003 11:04:16 +0000, "Paul F. Johnson"
: > <paul@spammersahoy!.co.uk> wrote:
: >
: > : background : #dbdbdb
: > : url("http://ahnews.music.salford.ac.uk/rn2/images/rn.jpg") no-repeat;
: > :
: > : I've defined my image map for this banner.
: >
: >
: > Wont work. It is a _background_, and will render differently depending on
: > resolution.
:
: How so Sid? What does 'resolution' have to do with the rendering of a
: background?
:


If you're on a 640 width, and the image map points to 700,30 e.g.... see ?

Sid

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Freeware for clickable imagemaps? Yrrah HTML 5 01-07-2007 01:51 PM
White strip showing up between two imagemaps Nathan Sokalski ASP .Net 4 09-22-2006 11:53 PM
imagemaps David ASP .Net 3 10-18-2005 08:29 PM
Howto create rollovers in imagemaps? timothy HTML 4 11-30-2004 06:45 PM
images vs imagemaps brucie HTML 11 01-22-2004 01:52 AM



Advertisments