Home › Forums › CSS › Overriding WordPress Theme CSS for iPhone › Reply To: Overriding WordPress Theme CSS for iPhone
If I were to add code that overrides the Theme & gives a different position property to all divs (when viewed on a small screen), would this work to stop page elements from overlapping?
Maybe. Probably. Try it and see. It’s hard to comment when we don’t know what you’re working with.
Would the static or relative property be better suited for what I want to do?
It depends on your needs. Both will make elements sit in the normal flow of whatever’s around them, the difference being that ‘relative’ responds to other positioning properties (top/right/bottom/left) if they are set, which is likely because you say that absolute positioning is already in effect.
Try ‘static’ to see what happens. If not, try ‘relative’ with other positioning overrides.