- This topic is empty.
August 14, 2013 at 4:40 pm #146853shart291Participant
I am trying to manually position elements on a client’s site. all of the segments that are positioned are using Absolute Positioning as I was experiencing some bad side effects that were actually worse that what I am getting now.
each element is positioned off of the top and left.
In Chrome the element I am using appears right below the nav, in the correct spot using the following code.
However it seems to be working like relative positioning as the top value is not based off of the top of the viewport, rather it seems the reference is the original location for this element.
It’s weird because in firefox, it is being based off of the top viewport.
I don’t see any rogue css anywhere. Why would an absolutely positioned element behave like a relatively positioned one on only the
It is weird.
If anyone needs additional info the dev site is Here and the element is the main div for the Category A column on the left hand side.
aside from the slider, all other elements appear to be affected this way as well.
toppositioning values behave as if they are using relative positioning, even though they are not.
here is a code pen link, it contains all the main styles used and the complete rendered code for the page.
The styles are specific to the front page of this site.August 15, 2013 at 4:14 am #146883Paulie_DMember
I should add that absolutely positioning everything is a very bad idea
Very much agree with this….the last option one should choose…even after TABLES!
The Codepen doesn’t render in ‘pen’ mode but FullScreen does…mostly. :http://codepen.io/anon/full/tsduH
Layout doesn’t look that problematical to do in other ways.August 15, 2013 at 7:29 am #146900shart291Participant
The problem is that the headers disappear when I use relative positioning to get everything where I need it to be.
How else would you approach this because relative positioning was way worse in chrome than absolute.August 15, 2013 at 7:32 am #146901
- The forum ‘CSS’ is closed to new topics and replies.