7 replies [Last post]
bubster
bubster's picture
User offline. Last seen 5 years 32 weeks ago. Offline
newbie
Joined: 2005-01-18
Posts: 8
Points: 0

Hi

I have created a css popup gallery which works fine with ie and firefox but has problems in opera.

My page is:

gallery page

Any help or advice is much appreciated.

Anonymous
Anonymous's picture
rank Guru
Guru

css image popup - opera help

Simply a first suggestion to get you started:

http://validator.w3.org/check?uri=http%3A%2F%2Fwww.klout.co.uk%2Fjones1.htm

Smile

Then we'll go from there.
(Probably, won't help alleviate the problem but can't hurt either.)

bubster
bubster's picture
User offline. Last seen 5 years 32 weeks ago. Offline
newbie
Joined: 2005-01-18
Posts: 8
Points: 0

css image popup - opera help

thanks, I'll validate the page immediatley

Anonymous
Anonymous's picture
rank Guru
Guru

css image popup - opera help

.popup A SPAN {
	DISPLAY: none
}
.popup A:hover {
	COLOR: #FF6600; TEXT-INDENT: 0px
}
.popup SPAN IMG {
	DISPLAY: block; WIDTH: 434px; HEIGHT:360px
}
.popup A:hover IMG {
	BORDER-RIGHT: #FF6600 0px solid; BORDER-TOP: #FF6600 0px solid; BORDER-LEFT: #FF6600 0px solid; BORDER-BOTTOM: #FF6600 0px solid
}
.popup A:hover SPAN {
	BORDER-RIGHT: 0px; BORDER-TOP: 0px; DISPLAY: block; MARGIN: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: 0px; TEXT-ALIGN: center
}
.popup A:hover SPAN IMG {
	BORDER-TOP-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-RIGHT-WIDTH: 0px; WIDTH: 434px; HEIGHT:360px
}
.popup A:visited SPAN IMG {
	BORDER-TOP-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-RIGHT-WIDTH: 0px; WIDTH: 434px; HEIGHT:360px
}
.popup A:active SPAN IMG {
	BORDER-TOP-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-RIGHT-WIDTH: 0px; WIDTH: 434px; HEIGHT:360px
}
#popupl A:hover SPAN {
	LEFT: 266px; POSITION: absolute; TOP: 0px; WIDTH: 434px; HEIGHT:360px
}

Try putting these in proper order. Apparently, it is very important: link, visited, hover, active.

I am not sure about this...are CSS definitions case sensitive like XHTML is with the tags? A, SPAN and IMG to a, span and img. I don't know if it makes a difference.

bubster
bubster's picture
User offline. Last seen 5 years 32 weeks ago. Offline
newbie
Joined: 2005-01-18
Posts: 8
Points: 0

css image popup - opera help

OK I have validated and put the css in order.

Any help much appreciated.

bubster
bubster's picture
User offline. Last seen 5 years 32 weeks ago. Offline
newbie
Joined: 2005-01-18
Posts: 8
Points: 0

css image popup - opera help

fixed the problem......

used:

.popup {
POSITION: absolute; left: 0px; top: 0px
}

did the trick, thanks for your help Triumph

regards

Hugo
Hugo's picture
User offline. Last seen 3 hours 38 min ago. Offline
rank Moderator
Moderator
Timezone: GMT+1
Joined: 2004-06-06
Posts: 14200
Points: 1256

css image popup - opera help

Yes CSS is case sensitive you should really use lowercase even with id and class names, it's best practise especially with xhtml which requires all lowercase.

There are a some uppercase tags in the stylesheet such as H1 which will need changing to pass validation.


Hugo.

Before you make your first post it is vital that you READ THE POSTING GUIDELINES!
----------------------------------------------------------------
Please post ALL your code - both CSS & HTML - in [code] tags
Please validate and ensure you have included a full Doctype before posting.
Why validate? Read Me

Anonymous
Anonymous's picture
rank Guru
Guru

css image popup - opera help

Hugo wrote:
Yes CSS is case sensitive you should really use lowercase even with id and class names, it's best practise especially with xhtml which requires all lowercase.

There are a some uppercase tags in the stylesheet such as H1 which will need changing to pass validation.
Thanks for clearing that up. I was almost certain of it but not 100%. Smile