Help with a div - center and left align!

  • 1
  • Question
  • Updated 9 years ago
  • Answered
Ok... so I pinpointed that I need to use a div tag...

How can I center something and on the same line as that centered object I can left align something else?
Photo of Donald

Donald

  • 2991 Posts
  • 37 Reply Likes
  • http://youcanneverbetoosmart.com

Posted 9 years ago

  • 1
Photo of Joe

Joe

  • 2 Posts
  • 0 Reply Likes
Hi Donald,

I was able to do this but it still seems to have some issues. I'm using:

Not working

Here :(


div style="float: left" and "float: right" can help to align text on either side of the page, but there is no 'float: center' ... to fix this I moved the right margin in..

edit: /sigh... seems to not be working here either... check here for the solution: http://archivist.incutio.com/viewlist...

All I did was add 'margin-right: 300px' to move in the right side. I'm trying to find a way to avoid moving the margin, until then I hope this helps.
Photo of Donald

Donald

  • 2991 Posts
  • 37 Reply Likes
http://ycnb2s.zymichost.com/ - hey, I did it!

Also, click the Register for Free! link and test out my login system!
Photo of Joe

Joe

  • 2 Posts
  • 0 Reply Likes
Login works great. :)
Photo of Sanja

Sanja, Official Rep

  • 10698 Posts
  • 495 Reply Likes
Very cool Donald!
Photo of diane

diane

  • 1238 Posts
  • 121 Reply Likes
It works!
Photo of Donald

Donald

  • 2991 Posts
  • 37 Reply Likes
yep, one thing I figured, to make a great website, html sometimes just isn't enough (although I've seen some pretty awesome websites done with Yola), but they don't usually consist of logins, member areas, your account info, etc. Also, shopping carts with yola are generally only allowable from another host (paypal, google checkout, your own website but different host) - because when you do something like a shopping cart on your own website, all information will be lost from one page to the next - also known as html! When you get into MySQL, now you can cause information to remain from one page to the next (items in a shopping cart, messages in a chat - like facebook chat, etc.)