| View previous topic :: View next topic |
| Author |
Message |
NINTENDO Grandmaster Cheater Supreme
Reputation: 0
Joined: 02 Nov 2007 Posts: 1371
|
|
| Back to top |
|
 |
iTz SWAT I post too much
Reputation: 1
Joined: 20 Dec 2007 Posts: 2227 Location: Me.Location;
|
|
| Back to top |
|
 |
NINTENDO Grandmaster Cheater Supreme
Reputation: 0
Joined: 02 Nov 2007 Posts: 1371
|
Posted: Sun May 17, 2009 2:37 pm Post subject: |
|
|
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 |
|
 |
~Pineapple! Grandmaster Cheater Supreme
Reputation: 2
Joined: 27 Dec 2008 Posts: 1810 Location: The Local Library :3
|
Posted: Sun May 17, 2009 2:39 pm Post subject: |
|
|
| wallantia wrote: | | At the site you posted they tell me to use a static width. Can this really be accurate? |
Yeah, Fairly.
_________________
|
|
| Back to top |
|
 |
shhac Expert Cheater
Reputation: 0
Joined: 30 Oct 2007 Posts: 108
|
Posted: Sun May 17, 2009 5:03 pm Post subject: |
|
|
| Code: | | <style type="text/css">.center {width:100%;text-align:center;}</style><div class="center">omgz</div> |
|
|
| Back to top |
|
 |
NINTENDO Grandmaster Cheater Supreme
Reputation: 0
Joined: 02 Nov 2007 Posts: 1371
|
Posted: Mon May 18, 2009 2:45 am Post subject: |
|
|
| 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 |
|
 |
shhac Expert Cheater
Reputation: 0
Joined: 30 Oct 2007 Posts: 108
|
Posted: Mon May 18, 2009 7:55 am Post subject: |
|
|
| 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 |
|
 |
MiguelKN2 Master Cheater
Reputation: 0
Joined: 05 May 2009 Posts: 282 Location: Venezuela
|
Posted: Mon May 18, 2009 7:59 am Post subject: |
|
|
| 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 |
|
 |
NINTENDO Grandmaster Cheater Supreme
Reputation: 0
Joined: 02 Nov 2007 Posts: 1371
|
Posted: Mon May 18, 2009 12:46 pm Post subject: |
|
|
thx but whoever named it text-align is a bitch.
_________________
Intel over amd yes. |
|
| Back to top |
|
 |
shhac Expert Cheater
Reputation: 0
Joined: 30 Oct 2007 Posts: 108
|
Posted: Mon May 18, 2009 12:50 pm Post subject: |
|
|
| 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 |
|
 |
NINTENDO Grandmaster Cheater Supreme
Reputation: 0
Joined: 02 Nov 2007 Posts: 1371
|
Posted: Mon May 18, 2009 1:10 pm Post subject: |
|
|
| 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 |
|
 |
|