Jump to content


Horizontal


  • You cannot reply to this topic
29 replies to this topic

#1 hugelmopf

    Etomite Forum Fan

  • Member
  • Pip
  • 124 posts

Posted 13 September 2005 - 12:29 AM

Here is a template, that uses the ListMenu snippet to create an unordered list menu, which is then styled quite nicely, I believe.

You can have a look at it in action at http://hugelmopf.hu.ohost.de/etomite/index.php
  • passes XHTML and CSS validation
  • completely tableless
  • should appear the same in Firefox (tested 1.0.4 on Linux), Internet Explorer (tested 6.0), KHTML (Konqueror (tested 3.4.1) and Safari(?))
I am attaching a .zip-file which includes the template, the CSS, a javascript workaround for IE not displaying transparent PNGs and a few sample graphics, like they are in use on my demo site.
To install, put everything in the "./templates/Horizontal" directory and add the template.txt content into the template section in your Etomite manager.
This template relies on the ListMenu snippet to function properly... If you don't have this snippet it can be found in the Snippet Library.
Enjoy...

Attached Files


Edited by hugelmopf, 11 October 2005 - 03:27 PM.


#2 Dean

    Loves Etomite Forums!

  • Admin
  • 4,758 posts
  • Gender:Male

Posted 13 September 2005 - 10:55 AM

Looks really nice ;)

#3 Dean

    Loves Etomite Forums!

  • Admin
  • 4,758 posts
  • Gender:Male

Posted 13 September 2005 - 11:14 AM

hugelmopf, on Sep 13 2005, 01:29 AM, said:

(replaced <center> with <div style="text-align:center;">, should that make a difference?).
Oooh, SniperX would kill you for that one! LOL ;)

I remember wanting to use that somewhere and he didn't like it lol

But yes, it does work ;)

Edited by Dean, 13 September 2005 - 11:15 AM.


#4 hugelmopf

    Etomite Forum Fan

  • Member
  • Pip
  • 124 posts

Posted 13 September 2005 - 12:30 PM

Dean, on Sep 13 2005, 01:14 PM, said:

Oooh, SniperX would kill you for that one! LOL ;)
I remember wanting to use that somewhere and he didn't like it lol
But yes, it does work ;)
Hehe... he better come and tell me, how to replace it, then! ;)

Honestly, I always thought these were the same... but if I put <div style="text-align:center;"> in there, it just does not center anything :(
CSS gurus out there... help!

#5 katherholt

    Likes Etomite Forums!

  • Member
  • PipPip
  • 323 posts

Posted 13 September 2005 - 02:49 PM

hugelmopf, on Sep 13 2005, 08:30 AM, said:

Hehe... he better come and tell me, how to replace it, then!  ;)

Honestly, I always thought these were the same... but if I put <div style="text-align:center;"> in there, it just does not center anything  :(
CSS gurus out there... help!

Here's a tutorial: http://www.hscripts.com/tutorials/css/textp6.php
You might try using "span" instead of "div" to see if that would work.

#6 katherholt

    Likes Etomite Forums!

  • Member
  • PipPip
  • 323 posts

Posted 13 September 2005 - 02:59 PM

Dean, on Sep 13 2005, 06:55 AM, said:

Looks really nice ;)
I agree, I love the horizontal menu - I'll be using it soon!

#7 hugelmopf

    Etomite Forum Fan

  • Member
  • Pip
  • 124 posts

Posted 13 September 2005 - 03:08 PM

Ok, I have figured it out. I used margin:0px; on the main container and it is quite difficult to center something AND keep the margin at 0px... ;)

Should work now.

#8 mrruben5

    Likes Etomite Forums!

  • Member
  • PipPip
  • 255 posts

Posted 13 September 2005 - 03:49 PM

Nice one!

#9 pmage

    Etomite Forum Newbie

  • Member
  • 6 posts

Posted 28 September 2005 - 08:53 PM

This template is awesome!

But have a big problem...

The upper menu wont appear. I read that it has to do something with the margain set to 0px. I this correct?
I tried to alter it in all the 3 css-s, but it still wont load...

pls help, i tred it in ie 6 , 7beta and opera. Neither of them loaded the main menu.


THX

#10 hugelmopf

    Etomite Forum Fan

  • Member
  • Pip
  • 124 posts

Posted 28 September 2005 - 09:42 PM

pmage, on Sep 28 2005, 10:53 PM, said:

This template is awesome!

But  have a big problem...

The upper menu wont appear. I read that it has to do something with the margain set to 0px. I this correct?
I tried to alter it in all the 3 css-s, but it still wont load...

pls help, i tred it in ie 6 , 7beta and opera. Neither of them loaded the main menu.
THX
Sorry, I don't understand what you mean. Do you have a screenshot?
I looked at it just now, with IE6, Firefox 1.0.x and cannot see a problem. Does it look alright on the demo site for you?

#11 Ralph

    Loves Etomite Forums!

  • Admin
  • 6,524 posts
  • Gender:Male

Posted 28 September 2005 - 10:19 PM

pmage, on Sep 28 2005, 05:53 PM, said:

This template is awesome!

But  have a big problem...

The upper menu wont appear. I read that it has to do something with the margain set to 0px. I this correct?
I tried to alter it in all the 3 css-s, but it still wont load...

pls help, i tred it in ie 6 , 7beta and opera. Neither of them loaded the main menu.
THX
This template relies on the ListMenu snippet to function properly... If you don't have this snippet it can be found in the Snippet Library...

#12 Ginder

    Etomite Forum Newbie

  • Member
  • 4 posts

Posted 11 October 2005 - 11:39 AM

What am i doing wrong ?

I have dont it like, the "turtorial" says...

Attached Files



#13 Jelmer

    Loves Etomite Forums!

  • Member
  • PipPipPipPip
  • 1,173 posts

Posted 11 October 2005 - 12:07 PM

Do you have the ListMenu snippet installed? (See previous posts...)

#14 hugelmopf

    Etomite Forum Fan

  • Member
  • Pip
  • 124 posts

Posted 11 October 2005 - 12:09 PM

Ginder, on Oct 11 2005, 01:39 PM, said:

What am i doing wrong ?

I have dont it like, the "turtorial" says...
Are you sure you have the snippet "ListMenu" installed?

#15 Dean

    Loves Etomite Forums!

  • Admin
  • 4,758 posts
  • Gender:Male

Posted 11 October 2005 - 12:26 PM

If you have no pages below / along side that one, then no menu shows - add a test page along side it, and see what I mean ;)

#16 Ginder

    Etomite Forum Newbie

  • Member
  • 4 posts

Posted 11 October 2005 - 12:33 PM

hugelmopf, on Oct 11 2005, 02:09 PM, said:

Are you sure you have the snippet "ListMenu" installed?


Yes im sure, see the pic i have added.

I took the text from the listmenu.css file and added a new snippet file called ListMenu, isnt that the right wait to "install" it ?

Attached Files

  • Attached File  1.JPG   32.03K   129 downloads


#17 Jelmer

    Loves Etomite Forums!

  • Member
  • PipPipPipPip
  • 1,173 posts

Posted 11 October 2005 - 12:43 PM

Have you defined all the proper CSS elements in your CSS file?

#18 Ginder

    Etomite Forum Newbie

  • Member
  • 4 posts

Posted 11 October 2005 - 12:48 PM

Jelmer, on Oct 11 2005, 02:43 PM, said:

Have you defined all the proper CSS elements in your CSS file?


No i dont think i have done that, were can i do that ? :-)

#19 Ginder

    Etomite Forum Newbie

  • Member
  • 4 posts

Posted 11 October 2005 - 01:58 PM

Ralph (rad14701), on Sep 29 2005, 12:19 AM, said:

This template relies on the ListMenu snippet to function properly... If you don't have this snippet it can be found in the Snippet Library...


That was what i did and it worked :-)

#20 hugelmopf

    Etomite Forum Fan

  • Member
  • Pip
  • 124 posts

Posted 11 October 2005 - 03:21 PM

Ginder, on Oct 11 2005, 02:48 PM, said:

Jelmer, on Oct 11 2005, 02:43 PM, said:

Have you defined all the proper CSS elements in your CSS file?
No i dont think i have done that, were can i do that ? :-)
Actually you don't have to do that, as the CSS is included in the download.

Ginder, on Oct 11 2005, 02:33 PM, said:

I took the text from the listmenu.css file and added a new snippet file called ListMenu, isnt that the right wait to "install" it ?
No! Get it at the snippet library.

Quote

That was what i did and it worked :-)
So you got the ListMenu snippet from the snippetlibrary now, I hope? You will have to restore listmenu.css in case you messed it up.

Edited by hugelmopf, 11 October 2005 - 03:25 PM.






1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users