Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.