September 16, 201114 yr I am new to the CSS scene and am in the learning phase. So I am in need of some expertise help from someone in the CSS field. I have a question in respect to CSS Position Relative in the following code. Thank you <!-- CSS Styles --> #header-wrapper { background-color: #000; height: auto; width: 100% } #header { height: 150px; width: 100% margin: 0 auto; position: relative; <!-- Do I need this, is it valid? --> } Edited September 16, 201114 yr by MartyBoi
September 16, 201114 yr its position:relative not sure if you will need it without seeeing all your code
September 16, 201114 yr Author its position:relative not sure if you will need it without seeeing all your code You are right. Can't believe I made that error. Will let me ask you this. I do need it if I plan on using Position Absolute in a nested Div tag within the header div?
September 16, 201114 yr Yes and then the absolute positions will be taken from the header div http://css-tricks.com/791-absolute-positioning-inside-relative-positioning/
Create an account or sign in to comment