Hi,
What's the protocol for layout and design with Drupal? Should I place formatting items in the css file, or is it alright to do the formatting in Drupal? For example, in the footer section I have the organizations address and phone number. If I want to bold and center the address and phone number, can I just add <center> address </center> in the footer section, or should the <center> tag go into the css file?
Thanks,
Troy
Formatting should be done in the appropriate .css file. For general formatting,, it is the style.css file associated with your theme. You need to determine the correct CSS selector for the content you are formatting, and add the property appropriate to the content.
So for text, it is: {text-align: center}. For a block or an image content, it would be: {margin-left: auto; margin-right: auto}.
Cary Gordon The Cherry Hill Company http://www.chillco.com
On Mar 12, 2008, at 9:19 PM, Troy wrote:
Hi,
What's the protocol for layout and design with Drupal? Should I place formatting items in the css file, or is it alright to do the formatting in Drupal? For example, in the footer section I have the organizations address and phone number. If I want to bold and center the address and phone number, can I just add <center> address
</center> in the footer section, or should the <center> tag go into the css file?
Thanks,
Troy
[ Drupal support list | http://lists.drupal.org/ ]
As a general rule, it will be saner for you to markup the footer and handle the formatting in the css file. (e.g., <div class="footer">... your footer stuff </div>; then the appropriate markup in css). This lets you think about the "footer" as its own object, and format it/change formatting as you please--or as you need to, over time, and keeps you from burying crucial formatting information where you will forget to look at it, or may not notice it for what it is when it is late at night and you're making "just a quick change."
It is also good, if you can, to go through current HTML so that you aren't using deprecated markup (<center> is a long-deprecated tag). In practice, of course, things will run fine with the deprecated code, but then you've added an extra variable when you are troubleshooting, and won't be able to validate the HTML on the page to help troubleshoot.
ari
On Thu, Mar 13, 2008 at 12:19 AM, Troy troythetechguy@gmail.com wrote:
Hi,
What's the protocol for layout and design with Drupal? Should I place formatting items in the css file, or is it alright to do the formatting in Drupal? For example, in the footer section I have the organizations address and phone number. If I want to bold and center the address and phone number, can I just add <center> address </center> in the footer section, or should the <center> tag go into the css file?
Thanks,
Troy
-- [ Drupal support list | http://lists.drupal.org/ ]
Thanks Ari, this is good information! When you say I should go through the current HTML, does this mean the HTML Drupal generated when I first set up the site? If so, where do I find this HTML file?
Thanks,
Troy
On Thu, Mar 13, 2008 at 10:41 AM, Ari Davidow aridavidow@gmail.com wrote:
As a general rule, it will be saner for you to markup the footer and handle the formatting in the css file. (e.g., <div class="footer">... your footer stuff </div>; then the appropriate markup in css). This lets you think about the "footer" as its own object, and format it/change formatting as you please--or as you need to, over time, and keeps you from burying crucial formatting information where you will forget to look at it, or may not notice it for what it is when it is late at night and you're making "just a quick change."
It is also good, if you can, to go through current HTML so that you aren't using deprecated markup (<center> is a long-deprecated tag). In practice, of course, things will run fine with the deprecated code, but then you've added an extra variable when you are troubleshooting, and won't be able to validate the HTML on the page to help troubleshoot.
ari
On Thu, Mar 13, 2008 at 12:19 AM, Troy troythetechguy@gmail.com wrote:
Hi,
What's the protocol for layout and design with Drupal? Should I place formatting items in the css file, or is it alright to do the formatting in Drupal? For example, in the footer section I have the organizations address and phone number. If I want to bold and center the address and phone number, can I just add <center> address </center> in the footer section, or should the <center> tag go into the css file?
Thanks,
Troy
-- [ Drupal support list | http://lists.drupal.org/ ]
-- [ Drupal support list | http://lists.drupal.org/ ]
Any HTML or CSS that comes out of the box from Drupal.org should be standards compliant at this point, so it should be just your modifications that you need to pay attention to.
ari
On Thu, Mar 13, 2008 at 12:06 PM, Troy troythetechguy@gmail.com wrote:
Thanks Ari, this is good information! When you say I should go through the current HTML, does this mean the HTML Drupal generated when I first set up the site? If so, where do I find this HTML file?
Thanks,
Troy
On Thu, Mar 13, 2008 at 10:41 AM, Ari Davidow aridavidow@gmail.com wrote:
As a general rule, it will be saner for you to markup the footer and handle the formatting in the css file. (e.g., <div class="footer">... your footer stuff </div>; then the appropriate markup in css). This lets you think about the "footer" as its own object, and format it/change formatting as you please--or as you need to, over time, and keeps you from burying crucial formatting information where you will forget to look at it, or may not notice it for what it is when it is late at night and you're making "just a quick change."
It is also good, if you can, to go through current HTML so that you aren't using deprecated markup (<center> is a long-deprecated tag). In practice, of course, things will run fine with the deprecated code, but then you've added an extra variable when you are troubleshooting, and won't be able to validate the HTML on the page to help troubleshoot.
ari
On Thu, Mar 13, 2008 at 12:19 AM, Troy troythetechguy@gmail.com wrote:
Hi,
What's the protocol for layout and design with Drupal? Should I place formatting items in the css file, or is it alright to do the formatting in Drupal? For example, in the footer section I have the organizations address and phone number. If I want to bold and center the address and phone number, can I just add <center> address </center> in the footer section, or should the <center> tag go into the css file?
Thanks,
Troy
-- [ Drupal support list | http://lists.drupal.org/ ]
-- [ Drupal support list | http://lists.drupal.org/ ]
-- [ Drupal support list | http://lists.drupal.org/ ]