Hi.
My knowledge of css leaves a lot to be desired. TBH, i have always use tables but I am appreciating the power of css so am trying to learn along the way.
OK, I am wanting to add some elements to my header area but am confused in how to position them. If I set up a class or id for an image and position it 'absolute', this then positions the image to the browser window. Therefore, after researching, to make the element position to its parent container (i.e the header area) I need to make the header area to be positioned 'relative'. Therefore i have added the line within the stylesheet:
I then place the image in the header area and give it the following id style:
Is this the correct way of doing this? I know I should read a book etc but I decided to build my new 2013 shop from scratch rather than upgrading my v8 site. Therefore my time has been taken in inserting products rather than learning code. Thanks for the help.
My knowledge of css leaves a lot to be desired. TBH, i have always use tables but I am appreciating the power of css so am trying to learn along the way.
OK, I am wanting to add some elements to my header area but am confused in how to position them. If I set up a class or id for an image and position it 'absolute', this then positions the image to the browser window. Therefore, after researching, to make the element position to its parent container (i.e the header area) I need to make the header area to be positioned 'relative'. Therefore i have added the line within the stylesheet:
Code:
.header-area { position: relative; float: left; background: #fdf7e3; background: url('full_back.jpg'); margin: 0; width: 1000px; }
Code:
#facebook { position: absolute; top: 75px; left: 300px; }
Comment