I'm slowly improving my efforts with nopCommerce and CSS and I thought I'd share my experience with the header sections of styling as this gave me a little trouble, but was good to solve.
I started with nopClassic and I wanted a larger logo so I looked at this in the css:
a.logo
{
background: url('images/logo.gif');
display: block;
width: 225px;
height: 60px;
text-decoration: none;
}
If I fooled with the width and height the format just flowed all over the place.
To get around this I decided I had to do some absloute positioning.
The header needed to be fixed (this is output from windiff)
.header
{
<! padding: 6px 6px 10px 5px;
<! height: 60px;
!> position: relative;
!> top: 0;
!> left: 0;
!> padding: 6px 6px 5px 5px;
!> height: 85px;
}
Adding relative to the header gives the 'position' for absolute positioning to be relative to.
Then a bigger logo:
a.logo
{
<! background: url('images/logo.gif');
!> background: url('images/biglogo.png');
!> background-repeat: no-repeat;
display: block;
<! width: 225px;
!> width: 700px;
<! height: 60px;
!> height: 85px;
text-decoration: none;
}
And then the bit to stop the selectors and links from wrapping and moving:
.header-selectors-wrapper
{
!> position:absolute;
!> top: 40px;
!> right: 4px;
text-align: right;
float: right;
width: 500px;
}
and
.header-links-wrapper
{
!> position:absolute;
!> top: 0px;
!> right: 0px;
!>
float: right;
text-align: right;
width: 570px;
}
After that was all working I styled the theme colours etc.
I'm not claiming this is the best way to do it, I'm just saying what worked for me and I thought I'd share it, have fun!