Jump to content

Push it to the left


TheFilmGod

Recommended Posts

I have a div that I want to be aligned to the left side. I tried using margin: 0 600px 0 0; to get it to work, but IE throws up!

 

How can I fix this?

 

Is there a way to push the element to the left?

 

I tried "float: left" but this doesn't work as I wanted it to work. Is there another way?

Link to comment
https://forums.phpfreaks.com/topic/76313-push-it-to-the-left/
Share on other sites

I have a div that I want to be aligned to the left side. I tried using margin: 0 600px 0 0; to get it to work, but IE throws up!

 

How can I fix this?

 

Is there a way to push the element to the left?

 

I tried "float: left" but this doesn't work as I wanted it to work. Is there another way?

 

Ofcause, but now your asking, theres a good chance you need to rethink your design/layout.

Thats just my experiance, since i've cleared my "drawingboard" lots of times, and im about to do so again.

 

Anyway, you should try the CSS position attributes, if you are seaking inspiration feel free to check the link in my sig.

Using floats can really be hard to get working, without hacks etc, i've found that position saves alot of time in the end.

Link to comment
https://forums.phpfreaks.com/topic/76313-push-it-to-the-left/#findComment-386991
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.