Editing Properties of Blocks

FILES: page.tpl.php, css/blocks.css

Step 1

Open up your page.tpl.php and blocks.css files.

Step 2

Look at our page.tpl.php

You will notice that all of the elements on the page are inside a div tag called “container”. All elements are place within this div. It’s just something to help you keep the page all neat and organized. Next, you need to figure out which blocks you wish modify. The default Drigg template is setup in 3 columns or 3 content blocks. They are all under one universal div called “content”.

Each one has class and id attributes set accordling to each div, to recognize each. Theres left, center, and right content columns, or

<div id="content_left class="column">
<div id="content_center" class="column">
<div id="content_right" class="column"> 

Within each one of these contains blocks which you can change seperately if you wish. Such as someone who is adding more blocks in the left content column other then the default user block.

Heres the code to look for inside of our page.tpl.php file

<?php if (!empty($sidebar_left)): ?><div id="content_left" class="column"><?php print $sidebar_left; ?>

It’s basically saying, if there is no sidebar, then to create it for us. It has the id “content_left” with the stye class “column” assigned to the div.

NOTE: You don’t want to set the style properties directly to our page.tpl.php div tags. For those who don’t know what I’m talking about, it’s this:

<?php if (!empty($sidebar_left)): ?><div id="content_left" class="column" style="text-align:right; background-color:#33FF00;"><?php print $sidebar_left; ?>

The reason being, is that it could interfere with another style rule set within one of our css files. Some of you may argue that it will simply process the dominating rule, but this is a horrible practice in design. That’s why we have seperate css files, to keep everything clean and organized.

Step 3

Look into your blocks.css file. Find the section where it says this:

/* User block */
.block-user ul.menu {
margin: 0;
padding: 0;
list-style: none;
background-color:#33FF00;
text-align:right;
}

This is our whole user menu block. Use this section to change anything youd like within the user menu such as background color, text alignment, etc. Notice above we’ve changed the background color of the menu to a bright green, and aligned our text to the right.

You’ll notice that however you’ve edited the properties of the user menu block, the user name (when logged in) or whatever the name of the user menu is if you’ve edited Mine is “User Login”, it doesn’t affect it. It’s because it has its own properties . Its located in your blocks.css file under .block h2. And you can edit any of these properties accordingly just as you have the other properties of your menu block.

That’s it! Follow the same rules to edit the other blocks content,

It's advisable to place all

It's advisable to place all items within div to help you keep the page neatly organized. pectoral workout

This might be a stupid

This might be a stupid question, but why would I block anyone?
- Mark
Antivirus Software | Desktop Programs

Thanks

I finally learned how to properly edit the HTML blocks.

commercial kitchen appliances

Awesome work vw parts auto

Awesome work

vw parts auto

Thanks for the

Thanks for the cods.
Carolina Barbeque - Smithfield's Chicken 'N Bar-B-Q – the finest Eastern North Carolina-style BBQ.

Great features. mallin patio

Great features.
mallin patio furniture

ETC es un colegio

ETC es un colegio especializado en la enseñanza de la lengua Inglesa en general y específica por ejemplo, Inglés a nivel Empresarial, Turismo, Medicina, etc. ETC se establece en el business gifts ano 1989. Este colegio tiene el prestigioso reconocimiento del British Council y English UK.

Thanks

Excellent instructions and thank you for putting this out Youtube to MP3 converter online

its really excellent but you

its really excellent but you cant perform the whole job through this code.
Real Estate Investing

time

happiness interventions over a period piaget replica watch of several months.5 One of tiffany diamond rings these interventions involved listing three cheap tiffany jewelry

Keep up the good

Keep up the good work.
graduate diploma | graduate certificate

Thanks for sharing this

Thanks for sharing this information.
education degree | nursing degree | undergraduate diploma

nice post. the useful

nice post. the useful article you have shown us.
wholesale cigarettes,wholesale cigarette.

fasdfs

It’s truly one of the most

It’s truly one of the most encouraging article I’m ever read. Thanks for to apportion from you. Even I bookmarked this as advantageously for to get improve from it in incoming. acai berry
visitor spy review
micro niche finder review

The reason being, is that it

The reason being, is that it could interfere with another style rule set within one of our css files. Some of you may argue that it will simply process the dominating rule, but this is a horrible practice in design. That’s why we have seperate css files, to keep everything clean and organized.Each one has class and id attributes set accordling to each div, to recognize each. Theres left, center, and right content columns,,..Thank you,.alarm system malaysia

It is excellent to have the

It is excellent to have the ability to read a good quality blog with useful details on topics that a lot are interested on.cheap prom dresses The reason that the data indicated are all first hand on live experiences even assist more. Go on doing what you do as we enjoy reading your work.prom dresses replica handbags

Editing properties of Blocks

Thanks for the illustration, you have made it in clear, straight & easy to implement steps which makes it easy for us to implement.
Changes are made easy too, I think I can modify it to match with my project.
Annuity Calculator | Variable Annuities

Thanks for sharing this

Thanks for sharing this tutorial. I have been searching on how to program with php on blocks.
Matt Proman
Matthew Proman

When I visited Wangfujing

When I visited Wangfujing Street, it was a fascinating experience. So many different foods and people. and the atmosphere was fantastic.Cash Advance Payday Loan

I have read up on this quite

I have read up on this quite a bit and I must say that you do know your stuff! smallville season 9 episode 21 | ghost whisperer season 5 episode 21 | ben 10: ultimate alien season 1 episode 4

More commonly it was left to

More commonly it was left to me to figure out such essentials as who was in charge, who was good to work with, who could take a joke. If one of us is off sneaking a cigarette or a pee, the others will do their best to conceal her absence from the enforcers of gotomypc promo code corporate rationality. Certainly," the New York Times reported in March 2000, "inflationary wage gains are not evident in n ational wage statistics.

this was a great post, I

this was a great post, I have read up on this quite a bit and I must say that you do know your stuff!
youtube mp3

I have read up on this quite

I have read up on this quite a bit and I must say that you do know your stuff! online degree program

this was a great post, I

this was a great post, I have read up on this quite a bit and I must say that you do know your stuff! Wartsila

The time savings from fewer

The time savings from fewer keystroke via the auto-completions and not having to open up a PHP reference for library function usage, will pay for Komodo in a couple months. Add on to that the debugging features and JavaScript development tools and I can see no reason not to move on from HomeSite.best ecommerce solutions

All elements are place

All elements are place within this div. It’s just something to help you keep the page all neat and organized. Next, you need to figure out which blocks you wish modify.
( King Size Bed Frame | Laminate Wood Flooring | Ceramic Table Lamp )

Thanks

Thanks for the illustration, you have made it in clear, straight & easy to implement steps which makes it easy for us to implement.
Changes are made easy too, I think I can modify it to match with my project.
coat of arms | coats of arms

Very helpful information. I

Very helpful information. I have had a try in accordance with your introduction. Thank you very much. top online fax

A website should be unique

A website should be unique and should be capable of representing the company best.
military gear

Technically, Elton John

Technically, Elton John writes this own music, just not his own lyrics.Le Corbusier chair

The Cumbrian Coast Line

The Cumbrian Coast Line railway crosses the River Irt at the head of the tidal estuary where the Irt joins the River Mite at Ravenglass. internet fax

Very helpful information. I

Very helpful information. I have had a try in accordance with your introduction. Thank you very much. top online fax

Yeah buddy, what does it

Yeah buddy, what does it take to be "qualified registrant" someone who has already paid the $179.40 for the full year to play games that they will have to pay again to play? fax over the internet

Whether we appreciate it or

Whether we appreciate it or not, someday in our lives, we would need to carry out term papers and other written affair. It is beyond any doubt not child's play but very alluring to construct a investigate about editing properties of blocks.

Link Building Packages

We have 3 functioning bases

We have 3 functioning bases for nuclear submarines on the west coast (San Deigo, Pearl Harbor, and Bremerton/Bangor). Download 3oh!3 mp3

This works so well. You have

This works so well. You have explained this so well. This is so good to use.
whistle blower law

How do you add a different

How do you add a different template on blogger? I would like to use a different template than what Blogger offers. I have found one I like, but it says I need to download it and once I do that I have no idea how to get it onto my blog top online fax

Drupal offers a

Drupal offers a sophisticated programming interface for developers, no programming skills are required for basic website installation and administration.California Insurance

How do you add a different

How do you add a different template on blogger? I would like to use a different template than what Blogger offers. I have found one I like, but it says I need to download it and once I do that I have no idea how to get it onto my blog.army surplus

great

Drupal offers a

Drupal offers a sophisticated programming interface for developers, no programming skills are required for basic website installation and administration. free driver updater

You can change or specify

You can change or specify the properties associated with an xsl: instruction by editing the instructions properties. Each xsl: instruction block (and blocks for XPath functions) is associated with a dialog box that allows you to edit its basic properties, like this Function Property dialog box for the contains function.

Dog obedience training

gdf

Most part of the world hunger is the no. 1 problem. How does العاب بنات China would do to lower down the percentage for hunger العاب ? Actions needed and questions must be answered.

fdg

سكر بنات موقع ازياء و صور و العاب بنات افلا بنات ازياء موقع سكر بنات

صور صور جميل و

صور صور جميل و جديدة و اجمل العاب البنات العاب بنات

thanks for this. for more

Drupal offers a

Drupal offers a sophisticated programming interface for developers, no programming skills are required for basic website installation and administration.funny video

laptop accessories

Toshiba PA2444U AC Adapter(Input: AC100-240V (worldwide use) Output: DC15V 5A 75W Outlet: 2-prong)HP 361072-001 AC Adapter(Output: DC19V 7.11A Power: 135W)Toshiba Tecra A5-S116 AC Adapter(Output: 15V 5A Power: 75W )