Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
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
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
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.
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
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.
- Menu?
- Slideshow?
- 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:
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