1
hutman
CSS transparency and HTML background image?!
  • 2006/5/12 13:26

  • hutman

  • Just popping in

  • Posts: 58

  • Since: 2006/3/15


Hi, I'm trying to make a cell with a background image and a CSS menu (multimenu) but I'm having some difficulty.

What I've done so far is resize the CSS menu to fit the cell and set it's background colour to 'transparent'. This appears to work and makes the menu background transparent.

The final stage is to set the background image of the cell to a certain image - this I've done, but when the CSS menu is in the cell, it doesn't appear?

Does anyone know how I can achieve this effect?

You can see the menu at http://www.cgenie.net

The block code is:

<{foreach item=block from=$xoops_lblocks}>
<{if $block.title == "navbar"}>
<{$block.content}>
<{/if}>
<{/foreach}>

This should work shouldn't it? I dunno if I've missed something obvious!?

2
Will_H
Re: CSS transparency and HTML background image?!
  • 2006/5/12 13:34

  • Will_H

  • Friend of XOOPS

  • Posts: 1786

  • Since: 2004/10/10


uhm

http://="{$xoops_url}/themes/{$xoops_theme}/images/menubar_05.jpg

to

"images/menubar_05.jpg"

or try to hard link it, dont use XOOPS code.

3
hutman
Re: CSS transparency and HTML background image?!
  • 2006/5/12 14:05

  • hutman

  • Just popping in

  • Posts: 58

  • Since: 2006/3/15


hmm tried the first one, but it doesn't appear to make a difference...

The hardocde one works perfectly! Thanks for the tips!

very strange... any resident html gurus explain why only hardcoding works?

4
Quest
Re: CSS transparency and HTML background image?!
  • 2006/5/12 15:18

  • Quest

  • Friend of XOOPS

  • Posts: 1034

  • Since: 2005/11/19


I think it is missing something:

<{$xoops_url}>/themes/<{$xoops_theme}>/images/menubar_05.jpg">

5
svaha
Re: CSS transparency and HTML background image?!
  • 2006/5/12 18:01

  • svaha

  • Just can't stay away

  • Posts: 896

  • Since: 2003/8/2 2


I just visited your site, I was on the simple machines forum you have and saw that the adress bar displays the session id.
Thought you should know.

Quote:

6
hutman
Re: CSS transparency and HTML background image?!
  • 2006/5/12 19:05

  • hutman

  • Just popping in

  • Posts: 58

  • Since: 2006/3/15


hmm I can't seem to replicate this? What browser are you using?

Should I be concerned about the session ID being visible?

7
Will_H
Re: CSS transparency and HTML background image?!
  • 2006/5/12 22:23

  • Will_H

  • Friend of XOOPS

  • Posts: 1786

  • Since: 2004/10/10


because you are using the XOOPS Codes wrong

you would use

"<{$xoops_imageurl}>/images/menubar_05.jpg"


no http:// that is implied

Login

Who's Online

114 user(s) are online (30 user(s) are browsing Support Forums)


Members: 0


Guests: 114


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Dec 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits