Jump to content


Photo

center div horixontally


  • Please log in to reply
4 replies to this topic

#1 2handband

2handband

    New member

  • Member
  • 13 posts

Posted 11 October 2011 - 08:30 AM

Is there any way to centar a div horizontally on the screen using css?
  • 0

#2 2handband

2handband

    New member

  • Member
  • 13 posts

Posted 11 October 2011 - 09:12 AM

Okay, I got that fixed with the following:

margin:0 auto;

Troube is, it left the background image over to the elft-hand side of the screen! what can I do about that?
  • 0

#3 Wickham

Wickham

    Advanced Member

  • Advanced Member
  • PipPipPipPip
  • 1,732 posts
  • LocationSalisbury UK

Posted 11 October 2011 - 10:33 AM

center the background image using this in addition to the background-image codes
.bgimage { background-position: top center; }

http://www.w3schools...nd-position.asp

Edited by Wickham, 11 October 2011 - 10:35 AM.

  • 0

#4 2handband

2handband

    New member

  • Member
  • 13 posts

Posted 11 October 2011 - 09:35 PM

Thanks, got it working!
  • 0

#5 tgojkfl

tgojkfl

    New member

  • New Members
  • 1 posts

Posted 01 November 2011 - 04:44 AM

Now this time I visit many website and found many information but I think this is very important information all of us.I will sharing this information some other people.Thanks for published this information…


[Spam deleted]
  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users