Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


css (couldn't find right section)

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
NINTENDO
Grandmaster Cheater Supreme
Reputation: 0

Joined: 02 Nov 2007
Posts: 1371

PostPosted: Sat May 16, 2009 5:46 am    Post subject: css (couldn't find right section) Reply with quote

I couldn't find a section for scripting so I take my shit here! Razz

well the thing is that I would really much like to be able to center stuff in css. I've tried all kinds of stuff, but none works. I want something equal to the center tag in html.

for instance, how would I recreate this, with css.
<center><div>tjo</div></center>

_________________
Intel over amd yes.
Back to top
View user's profile Send private message Send e-mail AIM Address Yahoo Messenger MSN Messenger
iTz SWAT
I post too much
Reputation: 1

Joined: 20 Dec 2007
Posts: 2227
Location: Me.Location;

PostPosted: Sat May 16, 2009 7:41 pm    Post subject: Reply with quote

http://www.w3.org/Style/Examples/007/center
_________________
Back to top
View user's profile Send private message
NINTENDO
Grandmaster Cheater Supreme
Reputation: 0

Joined: 02 Nov 2007
Posts: 1371

PostPosted: Sun May 17, 2009 2:37 pm    Post subject: Reply with quote

At the site you posted they tell me to use a static width. Can this really be accurate?

Code:

<html>
  <head>
    <style>
      .holyShit
      {
        margin-left: auto;
        margin-right: auto;
        width: 6em
      }
    </style>
  </head>

  <body>
    <div class="holyShit">Hello</div>
  </body>
</html>

isn't em like when you multiply the font size or something. To me it seems no good. I rather keep using javascript to fix it or the center tag.

_________________
Intel over amd yes.


Last edited by NINTENDO on Sun May 17, 2009 2:43 pm; edited 2 times in total
Back to top
View user's profile Send private message Send e-mail AIM Address Yahoo Messenger MSN Messenger
~Pineapple!
Grandmaster Cheater Supreme
Reputation: 2

Joined: 27 Dec 2008
Posts: 1810
Location: The Local Library :3

PostPosted: Sun May 17, 2009 2:39 pm    Post subject: Reply with quote

wallantia wrote:
At the site you posted they tell me to use a static width. Can this really be accurate?


Yeah, Fairly.

_________________
Killor <3
My Fast Flash SWF Downloader

Hey, Hitler, want Butt Sechs?
Back to top
View user's profile Send private message
shhac
Expert Cheater
Reputation: 0

Joined: 30 Oct 2007
Posts: 108

PostPosted: Sun May 17, 2009 5:03 pm    Post subject: Reply with quote

Code:
<style type="text/css">.center {width:100%;text-align:center;}</style><div class="center">omgz</div>
Back to top
View user's profile Send private message
NINTENDO
Grandmaster Cheater Supreme
Reputation: 0

Joined: 02 Nov 2007
Posts: 1371

PostPosted: Mon May 18, 2009 2:45 am    Post subject: Reply with quote

shhac wrote:
Code:
<style type="text/css">.center {width:100%;text-align:center;}</style><div class="center">omgz</div>

Does that works even tho i dont want to center the text?

_________________
Intel over amd yes.
Back to top
View user's profile Send private message Send e-mail AIM Address Yahoo Messenger MSN Messenger
shhac
Expert Cheater
Reputation: 0

Joined: 30 Oct 2007
Posts: 108

PostPosted: Mon May 18, 2009 7:55 am    Post subject: Reply with quote

text-align is just the name of the property. It gets applied to all elements inside the element it is applied to, too.
Back to top
View user's profile Send private message
MiguelKN2
Master Cheater
Reputation: 0

Joined: 05 May 2009
Posts: 282
Location: Venezuela

PostPosted: Mon May 18, 2009 7:59 am    Post subject: Reply with quote

shhac wrote:
text-align is just the name of the property. It gets applied to all elements inside the element it is applied to, too.

Yah i just get in shock

_________________
But hey that's just my opinion
Back to top
View user's profile Send private message MSN Messenger
NINTENDO
Grandmaster Cheater Supreme
Reputation: 0

Joined: 02 Nov 2007
Posts: 1371

PostPosted: Mon May 18, 2009 12:46 pm    Post subject: Reply with quote

thx but whoever named it text-align is a bitch.
_________________
Intel over amd yes.
Back to top
View user's profile Send private message Send e-mail AIM Address Yahoo Messenger MSN Messenger
shhac
Expert Cheater
Reputation: 0

Joined: 30 Oct 2007
Posts: 108

PostPosted: Mon May 18, 2009 12:50 pm    Post subject: Reply with quote

Blame w3 then, the only reason text-align took on this too is because they wanted to make <center> and the align attribute depreciated and this is the only property that did horizontal alignment.
Back to top
View user's profile Send private message
NINTENDO
Grandmaster Cheater Supreme
Reputation: 0

Joined: 02 Nov 2007
Posts: 1371

PostPosted: Mon May 18, 2009 1:10 pm    Post subject: Reply with quote

shhac wrote:
Blame w3 then, the only reason text-align took on this too is because they wanted to make <center> and the align attribute depreciated and this is the only property that did horizontal alignment.

they could have simply called it align.

_________________
Intel over amd yes.
Back to top
View user's profile Send private message Send e-mail AIM Address Yahoo Messenger MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites