When is recommended to use “absolute” property in css, I mean, why don’t you use the “relative” alignment, because the absolute position will differ on different resolutions and will always look different on other displays. I want to know when and why you should use absolute, an example could do the job.
Share
absoluteis just as “variable” asrelative, screen parameters make no difference.Since I develop games, I use
absolutea LOT. It is very useful withinrelativecontainers to position UI elements. in fact, I’m working on a Facebook app right now and it had a fixed “canvas” size. Almost everything is absolutely-positioned for that.