Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#13 2007-09-02 08:14:35

jstubbs
Member
From: Hong Kong
Registered: 2004-12-13
Posts: 2,395
Website

Re: bantjes.com

8unknown, its not clear if you are doing what you need to do, which is really easy:

1. Create a form called “topmenu” and enter in that form your menu HTML
2. Save the form as type “misc”
3. Output the form on whichever page, for example default page, wherever you want the menu to appear

Have you done that?

Offline

#14 2007-09-04 22:33:39

8unknown
Member
Registered: 2007-08-26
Posts: 12

Re: bantjes.com

Yes, I’m pretty much sure that’s what I did now. And it works !
I just have to put the form on the pages I want, and it appears at the top…

Just the <center> tag that doesn’t seem to work, my menu appears on the top left corner of the pages even with that tag…

Offline

#15 2007-09-04 23:18:40

Gocom
Developer Emeritus
From: Helsinki, Finland
Registered: 2006-07-14
Posts: 4,533
Website

Re: bantjes.com

Just the <center> tag that doesn’t seem to work

Depends what doctype you use, but in general <center>-tag is unvalid (X)HTML – there even aren’t any tag called center… You should use CSS-to align your object, like something similiar:

#navtop {
width: 200px; /*Requires width if block-element*/
margin: 0 auto 0 auto; /* Margin centers */
text-align: center; /* This centers too */
}

Cheers!

PS. IE 5.5-6 converts/knows <center>-tags even if using XHTML. So it works with a one browser :D But it is because IE is a sh**.

Last edited by Gocom (2007-09-04 23:22:39)

Offline

#16 2007-09-20 14:31:17

8unknown
Member
Registered: 2007-08-26
Posts: 12

Re: bantjes.com

hey,
thank you all for the tips, I’m still struggling…
I’m using Safari which is probably why it doesn’t center the topmenu…
the thing is I learnt html on my own in 1998 or something when I was 12 or something… and now I find it hard to understand things like where to put the #navtop codes… If I use it after the <body> tag, it appears as raw code in my page…

Offline

#17 2007-09-20 14:45:04

8unknown
Member
Registered: 2007-08-26
Posts: 12

Re: bantjes.com

ok…
i placed the navtop tag after a <style type=“text/css”> tag and it seems to be working…
:)

Offline

#18 2007-09-20 14:45:16

Gocom
Developer Emeritus
From: Helsinki, Finland
Registered: 2006-07-14
Posts: 4,533
Website

Re: bantjes.com

In CSS-file (Cascading Style Sheet), where all styling is put and formed. You should try to learn new ways, like a valid XHTML and CSS.

CSS
XHTML

Who even uses inline styles or unvalid attributes that are passed away a long time ago? Keep with time. It could be hard at wirst, and yeah, it is easy to me to say “learn”, when I do websites as my work.

Cheers!

Offline

#19 2007-09-20 14:53:44

8unknown
Member
Registered: 2007-08-26
Posts: 12

Re: bantjes.com

I found this code that is probably useful for what I want to do, but it is not with images. Any idea how to use this and have rollover images instead ?

http://www.thescripts.com/forum/thread705222.html

Offline

#20 2007-09-21 00:02:50

Gocom
Developer Emeritus
From: Helsinki, Finland
Registered: 2006-07-14
Posts: 4,533
Website

Re: bantjes.com

8unknown wrote:

I found this code that is probably useful for what I want to do, but it is not with images. Any idea how to use this and have rollover images instead ?

http://www.thescripts.com/forum/thread705222.html

Firstly that CSS-stylingcode is whole different. It’s used to show li-items with links hover and display none. So, it’s really bad example. What kind of rollover you are planning to do? Because you could do a tons of different kinds.

  1. Menu?
  2. Slideshow?
  3. Rollover?

With two images:

#imgdiv {
	background: url(../images/img1.png) no-repeat 0 0;
	width: 350px;
	height: 200px;
	}

#imgdiv:hover {
	background: url(../images/img2.png) no-repeat 0 0;
	}

Something more:

  1. http://cssbeauty.com/
  2. http://www.cssplay.co.uk/index

PS. This isn’t really a TXP issue, so some CSS gallery/forum would be better place for this… And try googling around.

Last edited by Gocom (2007-09-21 00:03:08)

Offline

Board footer

Powered by FluxBB