Centering Tables
4 posters
Page 1 of 1
Centering Tables
How do i center a table i am trying to post? I just cant get the [center"][/center"] to work. (the " is so u can see it)
DRO N1nja- Forumember
- Posts : 57
Reputation : 0
Language : English
Re: Centering Tables
Try 1 of these codes:
- Code:
<div align="center">
- Code:
<table align="center">
KingOfSports- Hyperactive
- Posts : 2487
Reputation : 38
Language :
Location :
Re: Centering Tables
Are you trying to center the table or the text or both?
KingOfSports- Hyperactive
- Posts : 2487
Reputation : 38
Language :
Location :
Re: Centering Tables
i already centered the text i just need the table itsself
DRO N1nja- Forumember
- Posts : 57
Reputation : 0
Language : English
Re: Centering Tables
Did you make it with HTML or BBcode?
KingOfSports- Hyperactive
- Posts : 2487
Reputation : 38
Language :
Location :
Re: Centering Tables
the entire thing is BB
DRO N1nja- Forumember
- Posts : 57
Reputation : 0
Language : English
Re: Centering Tables
- Code:
<P ALIGN="CENTER">Text</P>
KingOfSports- Hyperactive
- Posts : 2487
Reputation : 38
Language :
Location :
Re: Centering Tables
Try adding: style="margin-left:auto; margin-right:auto" |
Example
- Code:
[table style="margin-left:auto; margin-right:auto; border:black 2px dotted; background:white; padding:3px"][tr][td]Content[/td][/tr][/table]
Content |
_________________
- General rules - Tricks & Tips - FAQ listing | - For founders who lost their passwords - About support requests by PM - Announcements & Updates |
Last edited by RoNo on June 11th 2010, 6:53 pm; edited 1 time in total
Re: Centering Tables
Try this. XXX would be the table. Though adding the margin as above works too.
- Code:
<script type="text/javascript" src="http://code.jquery.com/jquery-latest.js"></script>
<script src="http://www.alexandremagno.net/jquery/plugins/center/jquery.center.js" type="text/javascript"></script>
<script type="text/javascript">
jQuery(document).ready(function() {
jQuery("XXX").center({vertical: false});
});
</script>
harvengure- Forumember
- Posts : 86
Reputation : 0
Language : English
Re: Centering Tables
Thanks RoNo, it worked.
DRO N1nja- Forumember
- Posts : 57
Reputation : 0
Language : English
Re: Centering Tables
This topic is closed. Glad I could help. LockedRoNo |
General rules Tricks & Tips FAQ listing | For founders who lost their passwords About support requests by PM Announcements & Updates |
Similar topics
» problem centering my log on box
» Centering Tables
» Centering Help
» Centering profile
» Centering Banner
» Centering Tables
» Centering Help
» Centering profile
» Centering Banner
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum