Jump to content

align="center" doesn't work lol

this is really spooky, I don't know why it stopped working

Page 1 of 1
  • You cannot start a new topic
  • This topic is locked

align="center" doesn't work lol this is really spooky, I don't know why it stopped working Rate Topic: -----

#1 User is offline   temhawk 

  • W.R. Private First-Class
  • Group: Members
  • Posts: 322
  • Joined: 30-August 07
  • Gender:Male
  • Interests:travel, cg art, macs, music, skateboarding, programming, discovery channel, TextMate 2

Posted 30 September 2007 - 02:03 PM

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 TRANSITIONAL//EN">
<html>
<head>
<title>title</title>
</head>
<body bgcolor="#000000">

<div align="center" style="background-image:url('Images/e-cc_base_center.png'); width:256px; height:256px;"></div>

</body>
</html>


...and it stays left; in every browser, every time!

Please help, thanks!
0

#2 User is offline   benbacardi 

  • Administrator
  • Group: Administrators
  • Posts: 1,140
  • Joined: 06-April 06
  • Gender:Male
  • Location:United Kingdom

Posted 30 September 2007 - 04:59 PM

You shouldn't center things like that.
Use the following CSS on the main div:

width: 256px;
margin: 0 auto;


and that should center it.
0

#3 User is offline   temhawk 

  • W.R. Private First-Class
  • Group: Members
  • Posts: 322
  • Joined: 30-August 07
  • Gender:Male
  • Interests:travel, cg art, macs, music, skateboarding, programming, discovery channel, TextMate 2

Posted 01 October 2007 - 06:01 AM

Thank you very much!

Weird how it used to work the way I used to do it though..
I would normally use css for everything anyways, but sometimes I don't :pirate:
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • This topic is locked

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users