Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I turn off relative positioning?

Tags:

css

wordpress

http://mikroautobusunuoma.org/

The positioning of the slider on the page is screwed up in all 3 major browsers. By turning off 'position:relative' (Element style) It seems to fix the issue (In Firebug, etc.) I have searched every file on the server and cannot find where the element style is though. I used Agent Ransack to search multiple terms to try to find the line of code, to no avail.

I am lost as where to go from here.

This is a wordpress site with a built-in-theme Jquery Slider.

    <div id="featured-slider" style="background-image: none; position: relative; overflow: hidden;">

    element.style {
       background-image: none;
       overflow: hidden;
       position: relative;
    }
like image 978
Ken Avatar asked Nov 20 '12 21:11

Ken


People also ask

How do I delete a relative position?

the answer is, there is no way to unset the "position: relative" setting, at least in Chrome 86 on Linux. The workaround is the above, in case you can tie this property to a screen size.

Should I use relative or absolute positioning?

As a special, use “relative” positioning with no displacement (just setting position: relative ) to make an element a frame of reference, so that you can use “absolute” positioning for elements that are inside it (in markup).

How do I remove an element from a position in CSS?

The CSS2 specification says that the initial position value of an element is static . So in your case if you can't actually remove a declaration then reset it to the "default" which is static .

What does position relative mean?

An element with position: relative; is positioned relative to its normal position. Setting the top, right, bottom, and left properties of a relatively-positioned element will cause it to be adjusted away from its normal position. Other content will not be adjusted to fit into any gap left by the element.


1 Answers

Do position:static !important;

This will overwrite any existing CSS and inline style.

like image 88
Gurpreet Singh Avatar answered Sep 23 '22 00:09

Gurpreet Singh