Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By ludo1960 on
Hi,
I've been looking at the glossary view that comes with Views 2, with an aim to theme it.
Nancy Dru has done a nice job here http://nanwich.info/glossary
Eh, how did she do it?
TYIA
Comments
Bump
Anyone suggest where to start?
Ok getting somewhere now..
So I targeted the css:
.view-my-gloss {
text-align: center;
}
.views-summary {
font-size: 1.5em;
}
However I just want to change the header (the bit with A B C in it) The text-align: center; changes the alignment of the whole table and putting text-align: center; in the .views-summary has no effect, whilst the fontsize is changed just for the header.
Any CSS experts want to take a stab at this?
this probably isn't too
this probably isn't too helpful as to CSS styling, but the glossary page you point to was not created using views, but with the glossary module (which is a module i also use).
only just yesterday i took a quick look at the views 2 glossary and it appears to do a fairly different thing than this.
Hmmm
I dont have the glossary module installed, the page is created from the glossary view that comes with views.
Ok so it's...
.... a bit clearer now:
In my Css I now have:
But the text-align: center has no effect? What do I have to add to get the A B C to be center aligned?
Got it...
Had to target .attachment-before with the CSS: