Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar Mark Forums Read
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 11-27-2007, 04:06 PM   #1
eMonk
Confirmed User
 
Industry Role:
Join Date: Aug 2003
Location: Canada
Posts: 2,310
HTML center text tag

Code:
text <center>link</center>
how can i center the link in a table row & keep the text to its default left alignment? when i try to use the code above it moves the text within the center tag down to the next line. i would like it on the same table row without having to create more tables or splitting them up into two. can this do done?
eMonk is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-27-2007, 04:10 PM   #2
blogman9
Confirmed User
 
blogman9's Avatar
 
Join Date: Dec 2005
Posts: 1,261
td align="center"
__________________
Adult industry news

blogman9 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-27-2007, 04:18 PM   #3
eMonk
Confirmed User
 
Industry Role:
Join Date: Aug 2003
Location: Canada
Posts: 2,310
Quote:
Originally Posted by blogman9 View Post
td align="center"
but that would center the text & link wouldn't it? i just want the link centered in the table row.
eMonk is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-27-2007, 04:20 PM   #4
StuartD
Sofa King Band
 
StuartD's Avatar
 
Join Date: Jul 2002
Location: Outside the box
Posts: 29,903
You can't have something left aligned and something centered....
the centered item would have no idea where the center is supposed to be.

The more "text" you have left aligned, the further to the right the "centered" link is going to end up.
StuartD is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-27-2007, 04:27 PM   #5
eMonk
Confirmed User
 
Industry Role:
Join Date: Aug 2003
Location: Canada
Posts: 2,310
ok, guess i will have to create 2 different tables to do this. one for the text & one for the link. i have to do this more then 60 times though. i was hoping for an easier way to do this.
eMonk is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-27-2007, 04:45 PM   #6
warlordx
Confirmed User
 
Join Date: Jun 2007
Location: U.K
Posts: 134
you can do this using some simple css if you so wish
Code:
<html>
<head>
<style type="text/css" title="text/css" media="all">
<!--
#container {
     text-align:center;
       }
#left {
     display: inline;
     float: left;
       }
#center {
     display: inline;
     }
#right {
     display: inline;
     float: right;
       }
-->
</style>
</head>
<body>
<table>
<tr>
<td>
<div id="container"><div id="left">left text</div><div id="center">center text</div></td>
</tr>
</table>


</body>
</html>
this should work ok for ya give it a whirl
__________________
Trade blog traffic with my Penis enlargement site ..
warlordx is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-27-2007, 04:51 PM   #7
eMonk
Confirmed User
 
Industry Role:
Join Date: Aug 2003
Location: Canada
Posts: 2,310
i was just going to ask if there was a way to do this with css, thanks warlordx. i'll try that now.
eMonk is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-27-2007, 04:53 PM   #8
warlordx
Confirmed User
 
Join Date: Jun 2007
Location: U.K
Posts: 134
no problemo bud im a code whore lmao speak nice things about me if the cops ever come knocking hehe
__________________
Trade blog traffic with my Penis enlargement site ..
warlordx is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-27-2007, 04:55 PM   #9
Deej
I make pixels work
 
Deej's Avatar
 
Industry Role:
Join Date: Jun 2005
Location: I live here...
Posts: 24,386
i was going to say, Css that shit in there... it may be tricky but it can damn near ALWAYS be done.....
__________________

Deej's Designs n' What Not
Hit me up for Design, CSS & Photo Retouching


Icq#30096880
Deej is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-27-2007, 04:58 PM   #10
warlordx
Confirmed User
 
Join Date: Jun 2007
Location: U.K
Posts: 134
Quote:
Originally Posted by Deej View Post
i was going to say, Css that shit in there... it may be tricky but it can damn near ALWAYS be done.....
hell yeah it can just a bit of a fiddle if you cant remember the piece you need but hey there's plenty of css resource sites out there :D
__________________
Trade blog traffic with my Penis enlargement site ..
warlordx is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-27-2007, 05:04 PM   #11
StuartD
Sofa King Band
 
StuartD's Avatar
 
Join Date: Jul 2002
Location: Outside the box
Posts: 29,903
First of all, those should be classes instead of ID's if they're to be done again on the page.... secondly, it still won't work unless the divs have widths specified to them as the divs will adjust according to the length of the divs... again, not properly centering it.
StuartD is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-27-2007, 05:10 PM   #12
aico
Moo Moo Cow
 
Join Date: Mar 2004
Location: Washington State
Posts: 14,748
<td align="center">
<div style="width: 500px;">
<p align="left"> text </p>
</div>
</td>
aico is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-27-2007, 05:15 PM   #13
eMonk
Confirmed User
 
Industry Role:
Join Date: Aug 2003
Location: Canada
Posts: 2,310
i got it to work with css. thanks again warlordx. you rock!
eMonk is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-27-2007, 05:18 PM   #14
warlordx
Confirmed User
 
Join Date: Jun 2007
Location: U.K
Posts: 134
Quote:
Originally Posted by MUNK View Post
i got it to work with css. thanks again warlordx. you rock!

no problemo bud
__________________
Trade blog traffic with my Penis enlargement site ..
warlordx is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-27-2007, 05:18 PM   #15
eMonk
Confirmed User
 
Industry Role:
Join Date: Aug 2003
Location: Canada
Posts: 2,310
Quote:
Originally Posted by StuartD View Post
First of all, those should be classes instead of ID's if they're to be done again on the page.... secondly, it still won't work unless the divs have widths specified to them as the divs will adjust according to the length of the divs... again, not properly centering it.
so replace "id" with "class" and "#" with "."?
eMonk is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-27-2007, 05:19 PM   #16
StuartD
Sofa King Band
 
StuartD's Avatar
 
Join Date: Jul 2002
Location: Outside the box
Posts: 29,903
Quote:
Originally Posted by MUNK View Post
so replace "id" with "class" and "#" with "."?
Yup, you got it
StuartD is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-27-2007, 05:19 PM   #17
yumma
Confirmed User
 
Join Date: Jul 2007
Posts: 579
html/css guru here...
yumma is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks
Thread Tools



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.