4 Replies - 840 Views - Last Post: 16 June 2003 - 04:04 PM

#1 rocks.in.my.shoes  Icon User is offline

  • D.I.C Regular

Reputation: 1
  • View blog
  • Posts: 445
  • Joined: 11-July 02

Automatically Centering Objects

Posted 14 June 2003 - 11:26 PM

This is a stupid question, but is there a way you can automatically center layers instead of manually doing it?
Is This A Good Question/Topic? 0
  • +

Replies To: Automatically Centering Objects

#2 codeman  Icon User is offline

  • w3c fanatic

Reputation: 3
  • View blog
  • Posts: 1,190
  • Joined: 13-August 01

Re: Automatically Centering Objects

Posted 15 June 2003 - 08:56 PM

Yes.

<style type="text/css">
<!--
body {text-align: center;}
div {text-align: left;}
-->
</style>



Now all <div> tags will be centered. Any text not inside of a <div>, however, will also be centered so make sure that all of your content is inside of <div>s or rectify the problem by adding

p {text-align: left;}


Post back with any additional questions.
Was This Post Helpful? 0
  • +
  • -

#3 illustrain  Icon User is offline

  • Voltron's Daddy
  • member icon

Reputation: 8
  • View blog
  • Posts: 1,597
  • Joined: 27-April 01

Re: Automatically Centering Objects

Posted 15 June 2003 - 09:21 PM

I think that he means in photoshop, since this is in graphics:

highlight the layer, select the whole document, then goto like layers -> align -> then however you want to align it like verticle center or whatever. I'm doing this off my head so just post if its wrong.
Was This Post Helpful? 0
  • +
  • -

#4 supersloth  Icon User is offline

  • serial frotteur - RUDEST MEMBER ON D.I.C.
  • member icon


Reputation: 4496
  • View blog
  • Posts: 28,404
  • Joined: 21-March 01

Re: Automatically Centering Objects

Posted 15 June 2003 - 09:29 PM

codeman, always thinking of the code. ;)
Was This Post Helpful? 0
  • +
  • -

#5 codeman  Icon User is offline

  • w3c fanatic

Reputation: 3
  • View blog
  • Posts: 1,190
  • Joined: 13-August 01

Re: Automatically Centering Objects

Posted 16 June 2003 - 04:04 PM

whatever. :)
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1