Hi,
I'm using Drupal since a week now, and i'm still learning a lot of stuff. The example page tutorial helped me a lot, but there's one thing i'm struggling with the past few days. I'm sure it's very simple for you guys, but i'm hoping you could help me out.
I'm trying to centre the content of the 'Home Area 2' block. I know i need to be in the style.css, but i tried a lot of methods i found online, but it just won't work. Any help would be greatly appreciated. Thanks in advance!
Chris
Home Area 2
Comments
Comment #1
gtsopour commentedComment #2
gtsopour commentedHello Chris,
I think that with the following code, you will accomplish what you want. Just place it at the bottom of your style.css file* sites/all/themes/bluemasters
.region-home-area-2 .block .content { text-align:center; }Override style.css with local stylesheet
*Since you are new to Drupal, I would like to inform you about the right way to add css rules. This brief guide will demonstrate how to setup Bluemasters theme to support a local.css file where custom CSS rules and modifications could be placed. Yes, you can add directly to your style.css file extra rules, but following the practise with local.css, there is no worry if the next theme update will override all your custom changes.
This can be done in 3 simple steps:
This step is important in order to force your template to be informed for the changes you have made in the template files. To do this go to Administer » Site configuration » Performance » Clear cached data
Finally, your bluemasters.info file will contain the following code
Now, you can edit the local.css file and add your style rules.
Thanks
/George
Comment #3
gtsopour commentedComment #4
gtsopour commentedComment #5
chrishgk commentedUnfortunatly the centre script didn't make any changes. I forgot to mention the block i'm trying to centre is a module (Agenda). I asked this question at their board first, but they told me i had to change the style.css of my theme. Maybe my agenda module is still overriding the style.css theme from blue masters?
Comment #6
EnriquePhoenix commentedThanks for the info. I started editing my style.css not thinking of the possibly of losing all my changes in the future.
Comment #7
djsagar commentedIt's working fine
Thanks.
Comment #8
gaurav.kapoor commented