Hi,

I'm working on xtemplate theme (gworks flavour) trying to give it a different look, and removing table tags while keeping features as showing images (image.module).

I want to remove the center alignment to the titles of every block (box?), but the format comes within the '{blocks}' variable as follows:

div class="block block-bookmarks" id="block-bookmarks-0"               
p align="center"
b hip's bookmarks /b 

...

And I can't find where this format comes from: any help???

I'd remove the 'p', align=center, and 'b' tags, and give it a .class, formatted from the css file.

(sorry that I couldn't get to parse (submit) the open and close tag symbols)

Thanx in advance for your interest,
hip

Comments

Robert Castelo’s picture

You should be able to set the block title alignment in the theme's CSS file:

.title {
text-align: center;
}

or..

.block .title {
text-align: center;
}

------------------------------------------
Drupal Specialists: Consulting, Development & Training

Robert Castelo, CTO
Code Positive
London, United Kingdom
----

hip’s picture

Hi,

Thanx for your answer. It would be right to define a class in the external CSS if there where no style definition in the very same html tag within the body of the document.

From less to more important (that overrides any prior style definition) the order goes as follows:
external CSS document > internal (HEAD) CSS > style in HTML tag

In this case the code in the HTML document comes as I wrote before: a parragraph tag with 'align="center"' in it and followed by a bold (b) tag. I cannot change these definitions from the external CSS.

So, I still need to find out where the {bloks} variable (in the template document) is defined.

Thanx anyway,
hip

Robert Castelo’s picture

Sorry, misread your question.

Sounds like it's being formatted in the template document, if you do a search for 'align="center' is it there?

------------------------------------------
Drupal Specialists: Consulting, Development & Training

Robert Castelo, CTO
Code Positive
London, United Kingdom
----

hip’s picture

I've just found where it is parsed to the html doc. Now I'll proceed (on my own, don't worry) to remove the 'fixed' style tags and define them from CSS.

Thanx MegaGrunt,
hip