Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Mar 2002
Posts: 574
Likes: 1
C
UGN GFX Whore
OP Offline
UGN GFX Whore
C
Joined: Mar 2002
Posts: 574
Likes: 1
When I have <input>s inside <td>s along with images, they don't line up. The form <input>s are lower than they "should" be but the images seem to be fine.

Does anyone know how to fix this problem besides avoiding the situation?

Joined: Feb 2002
Posts: 7,203
Likes: 11
Community Owner
Offline
Community Owner
Joined: Feb 2002
Posts: 7,203
Likes: 11
put a table within a table! lol


Donate to UGN Security here.
UGN Security, Back of the Web, and VNC Web Services Owner
Joined: Mar 2002
Posts: 574
Likes: 1
C
UGN GFX Whore
OP Offline
UGN GFX Whore
C
Joined: Mar 2002
Posts: 574
Likes: 1
Are you suggesting I use a table around the form or around the images? Because, the inputs and images alternate. Here is an example of the bullshit:

[Linked Image]

Joined: Mar 2002
Posts: 1,273
DollarDNS Owner
Offline
DollarDNS Owner
Joined: Mar 2002
Posts: 1,273
he's suggesting putting a table around the images and input boxes.

<TD>userimage</TD><TD>userinput</TD><TD>passimage</TD><TD>passinput</TD>

I'm not sure if that's how I'd do things though. Improving on what you've already got would do better, but it's not like you're posting any HTML for me to look at and suggest changes to.


Domain Registration, Hosting, Management
http://www.dollardns.net
Joined: Mar 2002
Posts: 574
Likes: 1
C
UGN GFX Whore
OP Offline
UGN GFX Whore
C
Joined: Mar 2002
Posts: 574
Likes: 1
lol SR, here:

Code
<table cellpadding=0 cellspacing=0>
	<tr><td height=20><img src=img/bg.gif height=20 width=1></td></tr>
	<tr><form><td height=33 valign=middle background=img/barbg.gif>
<img src=img/tconnect.gif>
<a href=#><img src=img/user.gif border=0></a>
<input type=text name="username" maxlength=50 size=14>
<a href=#><img src=img/pass.gif border=0></a>
<input type=password name="password" maxlength=50 size=14>
<img src=img/end.gif>
</td></form></tr>
</table>
I'll try doing separate td's for each item in a second. I'm not sure but I think I might have already tried it.

EDIT: Added
With a TD around each item, and it looks better. But, the first input sets a little too low. Here is the new code:
Code
<table cellpadding=0 cellspacing=0>
	<tr><td height=20><img src=img/bg.gif height=20 width=1></td></tr>
	<tr><form><td height=33 valign=middle background=img/barbg.gif>
<img src=img/tconnect.gif>
<a href=#><img src=img/user.gif border=0></a></td>
<td height=33 valign=middle background=img/barbg.gif>
<input type=text name="username" maxlength=50 size=14></td>
<td height=33 valign=middle background=img/barbg.gif>
<a href=#><img src=img/pass.gif border=0></a></td>
<td height=33 valign=middle background=img/barbg.gif>
<input type=password name="password" maxlength=50 size=14></td></form>
<td height=33 valign=middle background=img/bg.gif>
<img src=img/end.gif>
</td></tr>
</table>

Joined: Mar 2002
Posts: 1,273
DollarDNS Owner
Offline
DollarDNS Owner
Joined: Mar 2002
Posts: 1,273
I need more than that. I need enough that I can save a local page here on my computer to experiment with.


Domain Registration, Hosting, Management
http://www.dollardns.net
Joined: Mar 2002
Posts: 574
Likes: 1
C
UGN GFX Whore
OP Offline
UGN GFX Whore
C
Joined: Mar 2002
Posts: 574
Likes: 1
The only other part that matters is the starting HTML and BODY tags. The page I am working with to figure out why this won't line up is nothing but the code I posted and html,head,title,body, and /tags. Oh, and the call to the style sheet.
Code
<link rel="stylesheet" href="cfg/1.css" type="text/css">
http://www.refreshart.net/ae/cfg/1.css
http://www.refreshart.net/ae/img/tconnect.gif
http://www.refreshart.net/ae/img/user.gif
http://www.refreshart.net/ae/img/pass.gif
http://www.refreshart.net/ae/img/end.gif
http://www.refreshart.net/ae/img/bg.gif
http://www.refreshart.net/ae/img/barbg.gif

Also, this is for a layout I don't really want to go public yet.

Joined: Mar 2002
Posts: 1,273
DollarDNS Owner
Offline
DollarDNS Owner
Joined: Mar 2002
Posts: 1,273
I copied all the HTML and it worked perfectly on the first go:

http://serialcoders.sytes.net/linked/page.html


Domain Registration, Hosting, Management
http://www.dollardns.net
Joined: Jun 2002
Posts: 62
Junior Member
Offline
Junior Member
Joined: Jun 2002
Posts: 62
i have found that this kind of thing depends on your browser and also your screen resolution.


"Mrs. Jones, I'm sorry to inform you, but we've run the tests, and it appears that you have XP. Now don't cry - it's bad, but it's not a death sentence. Modern science has advanced in recent years, and it's now possible to live a reasonably happy life with XP. And there's a survivor's group that you'll want to meet as well."
Joined: Mar 2002
Posts: 574
Likes: 1
C
UGN GFX Whore
OP Offline
UGN GFX Whore
C
Joined: Mar 2002
Posts: 574
Likes: 1
When I look at that page, the bg image starts to repeat at the bottom, which I would guess means the table ius larger than it should be. This looks better than what I had, for whatever reason, but it still doesn't line up perfect. This is really pissing me off, I don't want to have to change the design. Thanks for the help so far though man.

Joined: Mar 2002
Posts: 815
S
nobody
Offline
nobody
S
Joined: Mar 2002
Posts: 815
You could try absolute positioning with CSS.

Joined: Mar 2002
Posts: 574
Likes: 1
C
UGN GFX Whore
OP Offline
UGN GFX Whore
C
Joined: Mar 2002
Posts: 574
Likes: 1
Good idea sinetific. I actually didn't really know much about absolute and relative positioning in CSS, until a few minutes ago. My first reaction was "What the [censored] is that?" I think I'll try relative positioning first. Absolute will work, but I am considering centering the layout instead of having it lean against the left side of the browser.

Joined: Mar 2002
Posts: 815
S
nobody
Offline
nobody
S
Joined: Mar 2002
Posts: 815
Yeah, once I learned it I started to use it for the layout of all my pages it's a lot easier since it doesn't really matter how you write your code you can just let the css tags take care of the positioning with a little guestimation on pixel values.

Joined: Mar 2002
Posts: 1,273
DollarDNS Owner
Offline
DollarDNS Owner
Joined: Mar 2002
Posts: 1,273
[img]http://serialcoders.sytes.net/linked/example.bmp[/img]

That's what the page looks like for me. It's lined up perfectly (at least, the user/pass stuff is)


Domain Registration, Hosting, Management
http://www.dollardns.net
Joined: Mar 2002
Posts: 574
Likes: 1
C
UGN GFX Whore
OP Offline
UGN GFX Whore
C
Joined: Mar 2002
Posts: 574
Likes: 1
Below the bottom purple line, the bg image starts to tile again. The table data should only be 20 px high but it is 2 or 3 px higher.

Joined: Mar 2002
Posts: 122
Member
Offline
Member
Joined: Mar 2002
Posts: 122
umm yeah i got it to work for ya, just msg me next time your on aim

Joined: Mar 2002
Posts: 574
Likes: 1
C
UGN GFX Whore
OP Offline
UGN GFX Whore
C
Joined: Mar 2002
Posts: 574
Likes: 1
I got your mom to work for me. k.

Joined: Jul 2003
Posts: 14
S
Junior Member
Offline
Junior Member
S
Joined: Jul 2003
Posts: 14
Cold Sunn,

Well i took a look at it and i changed your code around a little. Cleaned it up and stuff and try this out.

Code
<form>
	<table cellpadding=0 cellspacing=0>
		<tr><td height=20><img src=img/bg.gif height=20 width=1></td></tr>
		<tr>    
			<td height=33 valign=middle background=img/barbg.gif><!-- <img src=img/tconnect.gif> --><a href=#><img src=img/user.gif border=0></a></td>
			<td height=33 valign=middle background=img/barbg.gif><input type=text name="username" maxlength=50 size=14></td>
			<td height=33 valign=middle background=img/barbg.gif><a href=#><img src=img/pass.gif border=0></a></td>
			<td height=33 valign=middle background=img/barbg.gif><input type=password name="password" maxlength=50 size=14></td>
			<td height=33 valign=middle background=img/bg.gif><img src=img/end.gif></td>
		</tr>
	</table>
</form>
laugh

Joined: Aug 2003
Posts: 9
B
Aptenodytes Forsteri
Offline
Aptenodytes Forsteri
B
Joined: Aug 2003
Posts: 9
...or you could use
Code
<form style="margin: 0">


Link Copied to Clipboard
Member Spotlight
Posts: 30
Joined: June 2002
Forum Statistics
Forums41
Topics33,840
Posts68,858
Average Daily Posts1
Members2,176
Most Online3,253
Jan 13th, 2020
Latest Postings
Where and how do you torrent?
by danni75 - 03/01/24 05:58 AM
Animation,
by JohanKaariainen - 08/15/19 01:18 AM
Blackbeard.....
by Gremelin - 10/03/18 07:02 PM
my old account still exists!
by Crime - 08/10/18 02:47 PM
Okay WTF?
by HenryMiring - 09/27/17 01:45 AM
The History Thread...
by Gremelin - 08/11/17 12:11 PM
My friend NEEDS your HELP!
by Lena01 - 07/21/17 12:06 AM
I'm having fun with this guy.
by gabithompson730 - 07/20/17 01:50 AM
I want to upgrade my phone
by gabithompson730 - 07/20/17 01:49 AM
Doom 3
by Cyrez - 09/11/14 08:58 PM
Amazon Gift Card Generator/KeyGen?te
by Gecko666 - 08/22/14 09:21 AM
AIM scene 99-03
by lavos - 09/02/13 08:06 AM
Planetside 2
by Crime - 03/04/13 07:10 AM
Beta Testers Wanted
by Crime - 03/04/13 06:55 AM
Hello Everyone
by Gremelin - 02/12/12 06:01 PM
Tracfone ESN Generator
by Zanvin Green - 01/18/12 01:31 PM
Python 3 issue
by Testing - 12/17/11 09:28 PM
tracfone airtime
by Drache86 - 07/30/11 03:37 AM
Backdoors and the Infinite
by ZeroCoolStar - 07/10/11 03:52 AM
HackThisZIne #12 Releaseed!
by Pipat2 - 04/28/11 09:20 PM
gang wars? l33t-wars?
by Gremelin - 04/28/11 05:56 AM
Consolidate Forums
by diggin2deep - 04/21/11 10:02 AM
LAN Hacking Noob
by Gremelin - 03/12/11 12:42 AM
Top Posters
UGN Security 41,392
Gremelin 7,203
§intå× 3,255
SilentRage 1,273
Ice 1,146
pergesu 1,136
Infinite 1,041
jonconley 955
Girlie 908
unreal 860
Top Likes Received
Ghost 2
Crime 1
Ice 1
Dartur 1
Cyrez 1
Powered by UBB.threads™ PHP Forum Software 7.7.5