Click here to Skip to main content
15,906,567 members
Home / Discussions / Web Development
   

Web Development

 
AnswerRe: input type=text problem Pin
NeverHeardOfMe14-Apr-06 3:54
NeverHeardOfMe14-Apr-06 3:54 
AnswerRe: input type=text problem Pin
jiturinku14-Apr-06 4:58
jiturinku14-Apr-06 4:58 
QuestionJavascript Date Comparision Pin
Ajay Kr Dubey14-Apr-06 2:03
Ajay Kr Dubey14-Apr-06 2:03 
AnswerRe: Javascript Date Comparision Pin
Guffa14-Apr-06 2:39
Guffa14-Apr-06 2:39 
AnswerRe: Javascript Date Comparision Pin
Sushant_Mathur14-Apr-06 20:57
Sushant_Mathur14-Apr-06 20:57 
QuestionTwo Dirs for Cookies?? Pin
Richard Andrew x6413-Apr-06 13:03
professionalRichard Andrew x6413-Apr-06 13:03 
AnswerRe: Two Dirs for Cookies?? Pin
Richard Andrew x6413-Apr-06 15:37
professionalRichard Andrew x6413-Apr-06 15:37 
Questionwhitespace around css background Pin
pmcnally13-Apr-06 11:51
pmcnally13-Apr-06 11:51 
I havn't been able to remove white space around my back ground graphics in the table.

I put the background in the tag, and now I've tried it in a div tag, but neither will remove the space around the image. I've tried a lot of things with padding and margins, but nothing has worked yet.

You can view the page here or below in the code box =)
http://patrickmcnally.serverpowered.net/pball/get.php?cat=Guns&page_num=1#

[code]



a:link { color: #00000; text-decoration: none;}
a:visted { color: #00000; text-decoration: none;}
a:hover, a:active { color: #00000; text-decoration: none;}

#pics1 a.picsClass {
margin: 0px 0px 0px 0px;
width: 125px;
height: 70px;
color: #00000;
text-decoration: none;
font: 2px;
line-height: 10%;
}

td
{
overflow: hidden;
}

table
{
padding: 0px 0px 0px 0px;
}

#mainTable td
{
margin: 0px 0px 0px 0px;
max-width: 125px;
max-height: 70px;
width:expression(
document.body.clientWidth > (500/12) *
parseInt(document.body.currentStyle.fontSize)?
"125px":
"auto" );
font: 2px;
line-height: 10%;
}




function populateBox2(title, desc, pic1_name, pic2_name, pic3_name, pic4_name, pic5_name, pic1, pic2, pic3, pic4, pic5)
{
title = title.replace(/!!!/g, "\'");
desc = desc.replace(/!!!/g, "\'");
title = title.replace(/&&&/g, "\"");
desc = desc.replace(/&&&/g, "\"");
text1 = "<h2>"+title+"</h2>"+desc+"<br><br><a href=\"#\" onClick=\'populateBox1(\""+pic1+"\"); return false\'>"+pic1_name+"</a> ";
if (pic2 != "")
{
text1 = text1 + "<a href=\"#\" onClick=\'populateBox1(\""+pic2+"\"); return false\'>"+pic2_name+"</a> ";
}
if (pic3 != "")
{
text1 = text1 + "<a href=\"#\" onClick=\'populateBox1(\""+pic3+"\"); return false\'>"+pic3_name+"</a> ";
}
if (pic4 != "")
{
text1 = text1 + "<a href=\"#\" onClick=\'populateBox1(\""+pic4+"\"); return false\'>"+pic4_name+"</a> ";
}
if (pic5 != "")
{
text1 = text1 + "<a href=\"#\" onClick=\'populateBox1(\""+pic5+"\"); return false\'>"+pic5_name+"</a> ";
}
//alert(text1);
populateBox1(pic1);
document.getElementById("box2").innerHTML = text1;
}
function populateBox1(picName)
{
document.getElementById("box1div").innerHTML = "<img src=\"images/" + picName + "\" id=\"box1\">";
//alert(picName);
//document.getElementById("box1").src = "images/" + picName;
var h = document.getElementById("box1").height;
var w = document.getElementById("box1").width;
var nh = 150;
var nw = 300;
var nh2;
var nw2;

//alert(h + " " + w + " " + nh + " " + nw);

if (h > 150)
{
nh2=nh/h;
nw2 = w * nh2;
document.getElementById("box1").height = nh;
document.getElementById("box1").width = nw2;
//alert("Height - h-" + h + " w-" + w + " nh-" + nh + " nw-" + nw + " nh2-" + nh2 + " nw2-" + nw2);

}
w = document.getElementById("box1").width;
if (w > 300)
{
nw2=nw/w;
nh2 = h * nw2;
document.getElementById("box1").height = nh2;
document.getElementById("box1").width = nw;
//alert("Width - h-" + h + " w-" + w + " nh-" + nh + " nw-" + nw + " nh2-" + nh2 + " nw2-" + nw2);

}

}







[/code]


Thank you.

Light and Love to you all

-Patrick Arden McNally

GeneralRe: whitespace around css background Pin
Guffa13-Apr-06 12:16
Guffa13-Apr-06 12:16 
GeneralRe: whitespace around css background Pin
pmcnally13-Apr-06 14:42
pmcnally13-Apr-06 14:42 
GeneralRe: whitespace around css background Pin
Guffa16-Apr-06 9:50
Guffa16-Apr-06 9:50 
AnswerRe: whitespace around css background Pin
Chetan.visodiya17-Apr-06 21:16
Chetan.visodiya17-Apr-06 21:16 
GeneralRe: whitespace around css background Pin
jcrussell19-Apr-06 21:41
jcrussell19-Apr-06 21:41 
QuestionGet images for analyse before display into Internet Explorer Pin
manudev13-Apr-06 4:52
manudev13-Apr-06 4:52 
QuestionWebServer UserID? Pin
gmhanna13-Apr-06 3:40
gmhanna13-Apr-06 3:40 
QuestionJavaScript error: 'document' is undefined Pin
Tara1412-Apr-06 20:16
Tara1412-Apr-06 20:16 
AnswerRe: JavaScript error: 'document' is undefined Pin
alexey N12-Apr-06 20:27
alexey N12-Apr-06 20:27 
GeneralRe: JavaScript error: 'document' is undefined Pin
Tara1412-Apr-06 20:29
Tara1412-Apr-06 20:29 
GeneralRe: JavaScript error: 'document' is undefined Pin
alexey N12-Apr-06 20:39
alexey N12-Apr-06 20:39 
GeneralRe: JavaScript error: 'document' is undefined Pin
Tara1412-Apr-06 20:47
Tara1412-Apr-06 20:47 
QuestionHow to use webservice using REST Pin
Manoj kumar jain12-Apr-06 20:04
Manoj kumar jain12-Apr-06 20:04 
Questionasp.net ImageMap Pin
mastjabs12-Apr-06 12:40
mastjabs12-Apr-06 12:40 
QuestionHow to create link from one page to a certain section in another Pin
jmfekete12-Apr-06 4:27
jmfekete12-Apr-06 4:27 
AnswerRe: How to create link from one page to a certain section in another Pin
J4amieC12-Apr-06 4:42
J4amieC12-Apr-06 4:42 
GeneralRe: How to create link from one page to a certain section in another Pin
jmfekete12-Apr-06 5:19
jmfekete12-Apr-06 5:19 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.