- This topic is empty.
April 28, 2012 at 7:52 pm #37834
I’m learning css. Can anyone please tell me the impotence of using CSS positioning? I can design web pages without positioning. Then why should I use this messy thing? Is there any problem if I don’t use this?
Thanks in Advance
AnikaApril 28, 2012 at 9:12 pm #101949seanrobertsMember
If you don’t need it, nobody says you have to use it.
Otherwise, you do not have to use it. But if you are learning, you should give it a try.April 29, 2012 at 8:28 am #101960
Thanks for your nice answer. I didn’t work with drop-down menu. So I can’t speak about it. But I can place element sit beside one to another by floating and simply margin and padding. Isn’t it?April 29, 2012 at 8:34 am #101961
In fact, I used floating, margin and padding to place an element in right place. I didn’t mean I’ll not use it. I just wanted to get the point that when and why use the positioning when I can do it with floating, margin and padding. Thanks for your replay.April 29, 2012 at 9:29 am #101962wolfcry911Participant
I think you need a better understanding of positioning. You’re using it whether you know it or not. I’m guessing you’re referring to absolute positioning, but keep in mind there’s static, relative, fixed, and absolute (and inherit, but that will be one of the others). The default of course is static, but they each have their place.April 29, 2012 at 9:51 am #101964SenffParticipant
@anika039 I see what you’re saying, but along the way you will come across situations where positioning is the best option. For example:
– putting something in the absolute center of the page
– having something always on the same position on the screen, no matter how much you scroll
– placing an element “over” or “on top” of another element, as if they are layered
– etc. etc.
I understand your reservations but that’s just it — it’s hard to explain why you should use it, and you’ll really get that “a-HA!” moment at one point when you come across a situation where positioning will be very helpful.April 29, 2012 at 10:03 am #101965reswebMember
Even i was not using css positioning but after watching that video i understood the real use of css postitioningApril 29, 2012 at 1:50 pm #101970April 29, 2012 at 2:59 pm #101974
- The forum ‘CSS’ is closed to new topics and replies.