TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
Stats
  • Total Posts: 195,994
  • Total Topics: 21,325
  • Online today: 348
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 257
  • Total: 257

Style.css problem

Started by nokonium, April 25, 2005, 06:18:49 PM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

Nokonium

I tried to modify the style.css to add catbg.gif to the .nav style, so that when you have the Forum in the center, the forum 'head' matches the blocks.


.nav
{
background-image: url(images/catbg.jpg);
}


Well, the gif duly appeared behind the nav links but disappeared from the blocks. Restoring the style.css to its original by deleting the extra style code removed it from the forum 'head' but did not re-apply it to the blocks

IchBin

Might be cached. You try shift+refresh?

Nokonium

No not cached

I have completely redone it this morning, using the css from my portal backup files (see I'm not that daft ;) ) and it works OK, in that it doesn't mess the rest up but it isn't quite what I want. The background is only behind the nav links. What I wanted is a full width catbg.jpg, like an article, but with the nav links, inline, on it.

Bjørn

To accomplish this i would try adding

.nav , tr.nav td
{
background-image: url(images/catbg.jpg);
}


If it still don't work, try

.nav, tr.nav td , .nav a:link
{
background-image: url(images/catbg.jpg);
display: block;
}


That last might have some strange effect though...

If all fails, the easiest is to put a inline style with the background in a <div> , and use it in the theme_linktree() function in index.template.php.

Nokonium

Tried the first, no go, tried the second

Quotemight have some strange effect

It did, no longer inline, one above the other with two catbg.jpg backgrounds.

I also tried a few other display: possibles without any luck.

The last option is outside my ability, I did try putting straight <div></div> tags either end of the subtemplate but I got a parse error.  :-[

Bjørn

You need to put it inside the function, not outside...

But I think this also partly fails, because it only affects the linktree - the "who is viewing" and "next/prev" will still be the old style.

Meaning you probably HAVE to adjust the whole table all those tree is shown in..and that is defined at the start of Boardindex.template, messageindex,Display etc... almost all the main templates.

Nokonium

Quote from: Bloc on April 26, 2005, 07:31:34 PM
You need to put it inside the function, not outside...

But I think this also partly fails, because it only affects the linktree - the "who is viewing" and "next/prev" will still be the old style.

Meaning you probably HAVE to adjust the whole table all those tree is shown in..and that is defined at the start of Boardindex.template, messageindex,Display etc... almost all the main templates.

Thanks Bloc


This website is proudly hosted on Crocweb Cloud Website Hosting.