While working with div and css.. please let me know how this is possible...

If we have a HTML layout with divs... and i want to swap the leftnav and the main content area, how can i do that using CSS and the HTML

Is there a way possible, that i swap the positioning without disturbing the CSS.

Let me know..

Really need it!!!!

Thanks,
Rohit

Recommended Answers

All 5 Replies

try and swap the divs around, u'll probably need to edit your padding etc, but it shouldnt be too difficult!

try and swap the divs around, u'll probably need to edit your padding etc, but it shouldnt be too difficult!

Hmm... ok i'll give that a try...

Thanks anyways.. :)

if u using css, you must change it first
atribute like "float, padding, margin, etc" will affect your layout

so you can't just swap it in your html code, u need to change your css first

if u using css, you must change it first
atribute like "float, padding, margin, etc" will affect your layout

so you can't just swap it in your html code, u need to change your css first

Yeah!!! i got it.. it works... Thankyou.. :)

if you use CSS try to work with the Attribute Position:absolute;
then the margin.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.