Coding Woes

General help with pet/account decisions, galleries, CSS/HTML and so on.
Post Reply
Xelio
Posts: 688
Joined: 19 Jan 2006 09:50 pm
Location: Somewhere that's green...

Coding Woes

Post by Xelio » 12 Apr 2011 05:23 pm

I've had my alien Itgu for a little over a week now and am still fighting to get part of his lookup coded correctly. I thought it would be cute to have a sort of digital journal on his lookup, detailing what has happened to put him in his current customization whenever I update him. (I.e. if he's in a tree, it's because he's stuck. If he's in a dress, he was copying some native of the planet and wasn't aware that it was "girl" clothing.)

To that end, I designed a little data pad and did some coding on it. Problem is, the text is overflowing the edge of the "screen" by quite a bit, and all the fiddling with the number doesn't seem to help. A good friend of mine who is a wiz with coding has tried to help me figure out what's wrong, but she can't seem to tweak it either. When she tried putting it on a petpage it worked fine, but on a pet lookup the values go all wonky. I don't know if it's the coding on the rest of his lookup that causes the issue or what. I guess first I want to know if it's possible to fix this issue. If not, suppose I'll just format the text with paragraph breaks to get it to fit where I want and not have a blurb of text large enough to need a scroll bar.

Here is the lookup coding in its entirety:
Spoiler: open/close
<style />
body{background:url(http://img.photobucket.com/albums/v281/ ... tguBG2.png) repeat top left;}
body, td, p {color: #000000;font:8pt verdana;letter-spacing:1px;}
a:link, a:visited, #main a {color: #0092C1; }
#main b, b{color:#0092C1;}
a:hover, #main a:hover {color:#6FC9E1;cursor:crosshair;}
.content {color:#6FC9E1; font-size:10px;font-family:Century Gothic;}
#main {background:#FFFFFF;width: 790px; border: 0px; }
#content{width:100%;;}
#CustomNeopetView{height:308px;width:308px}
.contentModuleHeader,.contentModuleHeaderAlt, .ds{font:12pt Century Gothic;letter-spacing:4px;color:#6FC9E1;text-transform:lowercase;text-align:right;background:#000000;border-bottom-width:9px;border-bottom-style:double;border-bottom-color:#0092C1;border-top-width:3px;border-top-style:solid;border-top-color:#0092C1;}
.contentModule, .contentModuleTable {border: 0px; }
#header {background: #CCCCCC url(img.photobucket.com/albums/v281/Xelio/DaegHeader.png); height: 530px; width: 790px;border:none;}
#footer, .user, #nst, .sidebar{display: none; }
#template_nav {margin-left:-125px;margin-top:464px;}
ul.dropdown {background-color: #000000; border: 1px solid black; }
b{color:#FF0000;font-family:verdana;font-size:8pt;}
i{color:#FF0000;font-family:verdana;font-size:8pt;font-weight:bold;}
</style /><div align=center>
<Table style="text-align:center"><td width=550> <b> – This Lookup is a Work in Progress – </b>
<br><br><br><br>Greetings Neopian. I am ItGu, denizen of the stars. I have spent the past century creating stars for the quadrant of the universe. While drifting past this tiny green and blue celestial orb I would always find the most perplexing sense of longing. Thanks to outstanding service, I have been granted time to visit this world. I have with me my trusty datajournal to record my adventures!
<br><br><br><br>
Seeing as this is a lookup in progress, for now, just enjoy an image of Itgu enjoying discovering the soft bliss that is velvet.<br>
<img src="http://img.photobucket.com/albums/v281/ ... t.png"><br>
Thanks Shannon, oh so much!
<table border="0" cellpadding="0" cellspacing="0" width="590" height="372" background="http://img.photobucket.com/albums/v281/ ... uPanel.png">
<tr><td width="400" height="62" colspan="3"></td></tr>
<tr>
<td width="64" height="145"></td>
<td width="427" height="145"><div style="width: 427; height: 210px; overflow: auto; font-family: Lucida Console,Monaco5,monospace; font-size: 14px; color: #0092C1;"><div style="padding: 5px;">

<b>4.4.11</b> Safely landed on surface of Neopia. (At long last, squee!) Yet to determine if atmosphere can be used for own respiration. Have contracted local illness [Scourgies] and am trying to remain calm. Instinct tells me it will pass.
Primary objectives: obtain lodging, obtain sustatance, learn to blend in with natives. Priority 1... Get out of this tree! D: <br><br><br><br><br>
</div></div></td>
<td width="5" height="100"></td>
</tr>
<tr><td width="121" height="65" colspan="3"></td></tr>
</table>
<br><br></tr></table></td></tr></table></div>
Here's the portion that is just his non-functional data pad:
Spoiler: open/close
<table border="0" cellpadding="0" cellspacing="0" width="590" height="372" background="http://img.photobucket.com/albums/v281/ ... uPanel.png">
<tr><td width="400" height="62" colspan="3"></td></tr>
<tr>
<td width="64" height="145"></td>
<td width="427" height="145"><div style="width: 427; height: 210px; overflow: auto; font-family: Lucida Console,Monaco5,monospace; font-size: 14px; color: #0092C1;"><div style="padding: 5px;">

<b>4.4.11</b> Safely landed on surface of Neopia. (At long last, squee!) Yet to determine if atmosphere can be used for own respiration. Have contracted local illness [Scourgies] and am trying to remain calm. Instinct tells me it will pass.
Primary objectives: obtain lodging, obtain sustatance, learn to blend in with natives. Priority 1... Get out of this tree! D: <br><br><br><br><br>
</div></div></td>
<td width="5" height="100"></td>
</tr>
<tr><td width="121" height="65" colspan="3"></td></tr>
</table>

Any help would be super appreciated cause frankly, I'm stumped.
Image
Thanks Tiel for the lovely set!
Subeta - Neopets

Huggles
Feral Koala
Posts: 2508
Joined: 19 Jan 2006 03:56 am
Gender: Female

Re: Coding Woes

Post by Huggles » 13 Apr 2011 12:24 am

Code: Select all

<table border="0" cellpadding="0" cellspacing="0" width="590" height="372" background="http://img.photobucket.com/albums/v281/Xelio/ItguPanel.png">
<tr><td width="400" height="62" colspan="3"></td></tr>
<tr>
<td width="64" height="145"></td>
<td width="350" height="145"><div style="width: 427; height: 210px; overflow: auto; font-family: Lucida Console,Monaco5,monospace; font-size: 14px; color: #0092C1;"><div style="padding: 5px;">

<b>4.4.11</b> Safely landed on surface of Neopia. (At long last, squee!) Yet to determine if atmosphere can be used for own respiration. Have contracted local illness [Scourgies] and am trying to remain calm. Instinct tells me it will pass.
Primary objectives: obtain lodging, obtain sustatance, learn to blend in with natives. Priority 1... Get out of this tree! D: <br><br><br><br><br>
</div></div></td>
<td width="82" height="100"></td>
</tr>
<tr><td width="121" height="65" colspan="3"></td></tr>
</table>
Try this on the smaller code you posted. I decreased the second td in the second tr from 427 to 360 and increased the 3rd one from 5 to 72. There's three td widths that altogether take up a total width of 496ish? and to change one you have to change one or both of the others for it to register. I tried it on Khadmis and I think that's what you want. Let me know if it doesn't work. Forgive my crap grammar today. School makes Huggles brain tired.

Xelio
Posts: 688
Joined: 19 Jan 2006 09:50 pm
Location: Somewhere that's green...

Re: Coding Woes

Post by Xelio » 13 Apr 2011 10:22 pm

Are you sure you're not some coding deity? To use an old expression and (in my opinion) random expression, you hit the nail right on the head. I can not fully express my gratitude.
Image
Thanks Tiel for the lovely set!
Subeta - Neopets

Huggles
Feral Koala
Posts: 2508
Joined: 19 Jan 2006 03:56 am
Gender: Female

Re: Coding Woes

Post by Huggles » 14 Apr 2011 01:49 am

I wish I were. Really, I do. I just went through all your numbers and changed them individually, or in small groups, by doubling them. That way, when I checked the preview, It'd be fairly obvious if something changed. I have to admit it was nice being able to fix something when none of my code at school has worked for the past 2 months.

Xelio
Posts: 688
Joined: 19 Jan 2006 09:50 pm
Location: Somewhere that's green...

Re: Coding Woes

Post by Xelio » 14 Apr 2011 04:27 am

Shame about how things are going at school. Maybe you'll get some positive vibes from helping me out. Seriously though, if I get unlazy and finish drawing his real topbar image I'll actually be done with Itgu's lookup. It's quite exciting. I think it'll be the fasted I've assembled a pet lookup ever. Some people get these things done in a day or two, but a month is a good time frame for me. Suppose this thread is finished. Yay.
Image
Thanks Tiel for the lovely set!
Subeta - Neopets

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest