Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Learning Magento Theme Development

You're reading from   Learning Magento Theme Development Create visually stunning and responsive themes to customize the appearance of your Magento store

Arrow left icon
Product type Paperback
Published in Aug 2014
Publisher
ISBN-13 9781783280612
Length 182 pages
Edition 1st Edition
Languages
Tools
Concepts
Arrow right icon
Author (1):
Arrow left icon
Richard Carter Richard Carter
Author Profile Icon Richard Carter
Richard Carter
Arrow right icon
View More author details
Toc

Table of Contents (10) Chapters Close

Preface 1. Introduction to Magento and Magento Themes FREE CHAPTER 2. Magento Theming Basics 3. Magento Templates 4. Magento Layout 5. Social Media and Magento 6. Advanced Magento Theming 7. Magento Theming for Mobile and Tablet Devices 8. Magento E-mail Templates Index

Providing layout style for your Magento theme

The first thing you can provide for your Magento theme is some basic CSS to define the column's width and layout. Before you do this, you can use a simple CSS reset to remove unnecessary margins and padding from the elements:

* {
margin:0;
padding:0;
}
img {
border:0;
vertical-align:top;
}
a {
color:#1e7ec8;
text-decoration:underline;
}
a:hover       {
text-decoration:none;
}
:focus {
outline:0;
}

Tip

An alternative to CSS resets is normalize.css, which you can download from http://necolas.github.io/normalize.css/.

To do this, you can make use of what is provided in Magento's Default theme. Open the styles.css file in the /skin/frontend/default/default/css/ directory and you will see a block of CSS that begins:

/* Layout ================================================================================ */
.wrapper {
min-width:954px;
}
.page-print {
background:#fff;
padding:25px 30px;
text-align:left;
}
.page-empty {
background:#fff;
padding...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €18.99/month. Cancel anytime