/    Sign up×
Community /Pin to ProfileBookmark

image – setting bottom right

I know that I can not use 2 images as a background image. I have an image set as a background for a div tag class=”contentBox” (top left corner) and I also want to have an image set at the bottom right corner. I have tried setting the second image (bottom right) by using a class=”image”. I’m getting the effect that I want. I want my div tag to have cut off corners for the top left and bottom right.

Any suggestions on how to fix this issue.

[CODE]
<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”>
<html xmlns=”http://www.w3.org/1999/xhtml”>
<head>
<title>IMPulse NC, INC. – Traction Power Aftermarket</title>
<meta http-equiv=”content-type” content=”text/html; charset=utf-8″ />

<link rel=”stylesheet” type=”text/css” href=”../css/pop_style.css” />
<link rel=”stylesheet” type=”text/css” href=”../css/mainLayout.css” />

<style type=”text/css”>
/* HTML selectors start */
h5.indent {
margin-left:25px;
}

li.list {
list-style-image:url(../art/arrow.gif);
}
/* HTML selectors end */

/* ID selectors start */
#mainText {
height:700px;
font-family:Arial, Helvetica, sans-serif;
font-size:14px;
text-align:left;
margin-left:1%;
margin-right:1%;
padding: 10px 5px;
word-spacing:3px;
}

/* id ends here */

/* class starts here */
.space {
margin-left:2px;
}

.contentBox {
weight:100%;
height:10%;
background: url(../art/leftCorner_5.gif) top left no-repeat;
background-color:#6699cc;
padding:5px 5px 5px 5px;
}

.image {
position:absolute;
float:right;
vertical-align:bottom;
}

/* class ends here */
</style>

<script language=”JavaScript” type=”text/JavaScript”>
<!– function MM_reloadPage(init) { //reloads the window if Nav4 resized if (init==true) with (navigator) {if ((appName==”Netscape”)&&(parseInt(appVersion)==4)) { document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }} else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload(); } MM_reloadPage(true); //–>
</script>
</head>

<body>
<!– CASCADING POPUP MENUS v5.2 by Angus Turnbill http://www.twinhelix.com –>
<script language=”javascript” type=”text/javascript” src=”../js/pop_core.js”></script>
<script language=”javascript” type=”text/javascript” src=”../js/pop_data.js”></script>

<!– border begins here –>
<div id=”border”>

<!– second nav start here –>
<div id=”secNavBar”><a href=”../index.htm”>Home</a>&nbsp; |&nbsp; <a href=”quality.htm”>Quality</a>&nbsp; |&nbsp; <a href=”contactUs.htm”>Contact Us</a>&nbsp; | <a href=”siteMap.htm”>&nbsp;Site Map</a></div>

<!– logo starts here –>
<div id=”logo”>
<img src=”../art/NewLogo.jpg” alt=”Logo of IMPulse NC, INC.” usemap=”#Map” />
<map name=”Map” id=”Map”>
<area shape=”rect” coords=”5,3,280,74″ href=”../index.htm” alt=”Return to home page” />
</map>
</div>

<!– primary navigation div tags starts here –>
<div id=”priNav”>
<a id=”home” name=”home” style=”visibility:hidden;”>Home</a>
<!– primary navigation div tags ends here –>
</div>

<!– main text starts here –>
<div id=”mainText”>
<h2>Traction Power Aftermarket Products </h2>
<br />
<p style=”font-size:14px;font-style:normal;font-weight:normal;”>IMPulse NC, INC. manufactures the best relays and electrical devices to be offered in the traction substation industry.</p><br />
<p>
Below is a complete list of aftermarket devices that we offered. </p><br />

<!– AC Ground Fault Relay –>
<div class=”contentBox”>
<h5 class=”indent”>AC Ground Fault Relay</h5><br />
<img src=”#” alt=”IR6140 / 6060″ width=”100″ height=”100″ style=”float:left;margin-top:1%;padding:5px 5px 5px 5px;” />
<p class=”space”>IMP-151-D AC Ground Fault Relay is designed to be used in grounded AC power distribution systems of 600 volts or less.</p><br />
<p class=”space”>To learn more view pdf or text-only.
</p>
<img src=”../art/rightBCorner.gif” alt=”right corner image” class=”image” />
</div><br />

<!– Bus Over/Under Voltage –>
<div class=”contentBox”>
<h5 class=”indent”>Bus Over/Under Voltage</h5><br />
<img src=”#” alt=”IR6140 / 6060″ width=”100″ height=”100″ style=”float:left;margin-top:1%;padding:5px 5px 5px 5px;” />
<p class=”space”>Bus Over/Under Relay consists of a sending unit and an adjustable relay unit. The sending unit connects to the voltage to be monitored; it is self powered. The receiver consists of a fiber optic receiver.</p>
<br />
<p class=”space”>To learn more view pdf or text-only.
</p>
<img src=”../art/rightBCorner.gif” alt=”right corner image” class=”image” />
</div><br />

<!– ETS Supervisory –>
<div class=”contentBox”>
<h5 class=”indent”>ETS Supervisory</h5><br />
<img src=”#” alt=”IR6140 / 6060″ width=”100″ height=”100″ style=”float:left;margin-top:1%;padding:5px 5px 5px 5px;” />
<p class=”space”>ETS Supervisory Relay is normally used to provide an output from remote shorting of a wire pair while montoring for an open loop. The typical application is for remote stop buttons. </p>
<br />
<p class=”space”>To learn more view pdf or text-only.
</p>
<img src=”../art/rightBCorner.gif” alt=”right corner image” class=”image” />
</div><br />

<!– main text ends here –>
</div>

<div id=”btm_Bar”>
100 IMPulse Way • Mount Olive, North Carolina 28365 • Main (919) 658-2200 • Fax (919) 658-2268<br /> &copy;2006 IMPulse NC, Inc. All Rights Reserved. </div>
</div>

<script language=”javascript” type=”text/javascript” src=”../js/pop_events.js”></script>
</body>
</html>
[/CODE]

to post a comment
CSS

16 Comments(s)

Copy linkTweet thisAlerts:
@WebJoelJan 12.2007 — .contentBox {

[B]weight[/B]:100%;

height:10%;

background: url(../art/leftCorner_5.gif) top left no-repeat;

background-color:#6699cc;

padding:5px 5px 5px 5px;}[/QUOTE]
(above: ) You mean "[B]width[/B]"?
.image {

position:absolute;

[B]float:right;[/B]

vertical-align:bottom;

}[/QUOTE]
Remove "float:right"

and use:
right:0; bottom:0;[/QUOTE] (have not tested this yet... but it's a start. You are 'positioning' the image with "zero-right" and "zero-bottom" here, -yes?)

Anyway (avec a few other changes like removed "vertical-align:bottom", etc.), here it is:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<title>IMPulse NC, INC. - Traction Power Aftermarket</title>

<meta http-equiv="content-type" content="text/html; charset=utf-8" />

<link rel="stylesheet" type="text/css" href="../css/pop_style.css" />

<link rel="stylesheet" type="text/css" href="../css/mainLayout.css" />

<style type="text/css">

/* HTML selectors start */

h5.indent {

margin-left:25px;

}

li.list {

list-style-image:url(../art/arrow.gif);

}

/* HTML selectors end */

/* ID selectors start */

#mainText {

height:700px;

font-family:Arial, Helvetica, sans-serif;

font-size:14px;

text-align:left;

margin-left:1%;

margin-right:1%;

padding: 10px 5px;

word-spacing:3px;

}



/* id ends here */

/* class starts here */

.space {

margin-left:2px;

}

.contentBox {

position:relative;

width:100%;

height:10%;

background: url(../art/leftCorner_5.gif) top left no-repeat;

background-color:#6699cc;

padding:5px 5px 5px 5px;

}

.image {

position:absolute;

bottom:0; right:0;

}

/* class ends here */

</style>

<script language="JavaScript" type="text/JavaScript">

<!-- function MM_reloadPage(init) { //reloads the window if Nav4 resized if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) { document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }} else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload(); } MM_reloadPage(true); //-->

</script>

</head>

<body>

<!-- CASCADING POPUP MENUS v5.2 by Angus Turnbill http://www.twinhelix.com -->

<script language="javascript" type="text/javascript" src="../js/pop_core.js"></script>

<script language="javascript" type="text/javascript" src="../js/pop_data.js"></script>

<!-- border begins here -->

<div id="border">

<!-- second nav start here -->

<div id="secNavBar"><a href="../index.htm">Home</a>&nbsp; |&nbsp; <a href="quality.htm">Quality</a>&nbsp; |&nbsp; <a href="contactUs.htm">Contact Us</a>&nbsp; | <a href="siteMap.htm">&nbsp;Site Map</a></div>

<!-- logo starts here -->

<div id="logo">

<img src="../art/NewLogo.jpg" alt="Logo of IMPulse NC, INC." usemap="#Map" />

<map name="Map" id="Map">

<area shape="rect" coords="5,3,280,74" href="../index.htm" alt="Return to home page" />

</map>

</div>

<!-- primary navigation div tags starts here -->

<div id="priNav">

<a id="home" name="home" style="visibility:hidden;">Home</a>

<!-- primary navigation div tags ends here -->

</div>

<!-- main text starts here -->

<div id="mainText">

<h2>Traction Power Aftermarket Products </h2>

<br />

<p style="font-size:14px;font-style:normal;font-weight:normal;">IMPulse NC, INC. manufactures the best relays and electrical devices to be offered in the traction substation industry.</p><br />

<p>


Below is a complete list of aftermarket devices that we offered. </p><br />

<!-- AC Ground Fault Relay -->

<div class="contentBox">

<h5 class="indent">AC Ground Fault Relay</h5><br />

<img src="#" alt="IR6140 / 6060" width="100" height="100" style="float:left;margin-top:1%;padding:5px 5px 5px 5px;" />

<p class="space">IMP-151-D AC Ground Fault Relay is designed to be used in grounded AC power distribution systems of 600 volts or less.</p><br />

<p class="space">To learn more view pdf or text-only.

</p>

<img src="../art/rightBCorner.gif" alt="right corner image" class="image" />

</div><br />

<!-- Bus Over/Under Voltage -->

<div class="contentBox">

<h5 class="indent">Bus Over/Under Voltage</h5><br />

<img src="#" alt="IR6140 / 6060" width="100" height="100" style="float:left;margin-top:1%;padding:5px 5px 5px 5px;" />

<p class="space">Bus Over/Under Relay consists of a sending unit and an adjustable relay unit. The sending unit connects to the voltage to be monitored; it is self powered. The receiver consists of a fiber optic receiver.</p>

<br />

<p class="space">To learn more view pdf or text-only.

</p>

<img src="../art/rightBCorner.gif" alt="right corner image" class="image" />

</div><br />

<!-- ETS Supervisory -->

<div class="contentBox">

<h5 class="indent">ETS Supervisory</h5><br />

<img src="#" alt="IR6140 / 6060" width="100" height="100" style="float:left;margin-top:1%;padding:5px 5px 5px 5px;" />

<p class="space">ETS Supervisory Relay is normally used to provide an output from remote shorting of a wire pair while montoring for an open loop. The typical application is for remote stop buttons. </p>

<br />

<p class="space">To learn more view pdf or text-only.

</p>

<img src="../art/rightBCorner.gif" alt="right corner image" class="image" />

</div><br />


<!-- main text ends here -->

</div>

<div id="btm_Bar">

100 IMPulse Way • Mount Olive, North Carolina 28365 • Main (919) 658-2200 • Fax (919) 658-2268<br /> &copy;2006 IMPulse NC, Inc. All Rights Reserved. </div>

</div>

<script language="javascript" type="text/javascript" src="../js/pop_events.js"></script>

</body>

</html>

Curious:

<h5 class="indent">AC Ground Fault Relay</h5>[B]<br />[/B]

-is the <br> intended merely as a vertical spacer? It is really unneeded as any <h> tag is a block-level element and anything 'after' it will be forced to another line anyway. If you wnt more 'margin-bottom' on the <h> tag(s), so state it and save yourself a half-dozen or more repeated uses of <br>. It also aids adding more "contentBox" elements as this style will be seperated from your HTML, and be 'default' by the <h>'s style. ? [/QUOTE]
Copy linkTweet thisAlerts:
@impulseauthorJan 12.2007 — I had to put the <br /> in after h and p tags. The browsers were not forcing to another line, no automatic line breaks.

The .image is not at the bottom right of the contentBox dix tags. The image is at the bottom right of the page.
Copy linkTweet thisAlerts:
@ray326Jan 12.2007 — I had to put the <br /> in after h and p tags.[/quote]Then your .space and .indent styles are screwed up.
Copy linkTweet thisAlerts:
@impulseauthorJan 12.2007 — I don't see how that is possible. Div tag labeled mainText, the first part is not affected by the .indent and .space style. I have removed the <br /> in this portion below. There is no line break between this tags in the browser in less I using the <br />.

[CODE]
<div id="mainText">
<h2>Traction Power Aftermarket Products </h2>

<p style="font-size:14px;font-style:normal;font-weight:normal;">IMPulse NC, INC. manufactures the best relays and electrical devices to be offered in the traction substation industry.</p>
<p>

Below is a complete list of aftermarket devices that we offered. </p>
[/CODE]
Copy linkTweet thisAlerts:
@WebJoelJan 12.2007 — I had to put the <br /> in after h and p tags. The browsers were not forcing to another line, no automatic line breaks....[/QUOTE] -Would that be because of "weight=100%;" I wonder? Any <h> tag and any <p> tag, with a proper matching closing tag, is "block-level" and it will force a line-break. If it is not, there is something else potentially page-busting that is preventing this natural, ordered event.

...The .image is not at the bottom right of the contentBox dix tags. The image is at the bottom right of the page.[/QUOTE] Then you ought to take the image with class="image" out of the containers with class="contentBox" because in order to place an image at the lower-right of page using this class, you do not want to be re-using this same class in image elsewhere (because they will also be at zero-right/zero-bottom due to having same class).

As for the 'unrequired <br> tags', -looking at your site just now in Firefox reveals a bit more not working correctly on your page (except for the class="image" images being in the lower-right corners of "contentBox", which as-written, is working perfectly). ?

If you want a 'image' to be in the absolute lowest-righthand corner of the page, it has to be absolute-positioned, and not be inside any DIV or container except for <body>. (i.e., make [B]<img src="image.gif class="image" style="position:absolute; right:0; bottom:0;" />[/B] come right [I]after[/I] the opening <body>, or right [U]before[/U] the closing </body>, and then, it too shall work. If it is inside of [I]any[/I] container (div, td, etc) it will only be at the lower-right of [I]THAT[/I], and not the page... ?
Copy linkTweet thisAlerts:
@WebJoelJan 12.2007 — I had to put the <br /> in after h and p tags. The browsers were not forcing to another line, no automatic line breaks....[/QUOTE] -Would that be because of "weight=100%;" I wonder? Any <h> tag and any <p> tag, with a proper matching closing tag, is "block-level" and it will force a line-break. If it is not, there is something else potentially page-busting that is preventing this natural, ordered event.

...The .image is not at the bottom right of the contentBox dix tags. The image is at the bottom right of the page.[/QUOTE] Then you ought to take the image with class="image" out of the containers with class="contentBox" because in order to place an image at the lower-right of page using this class, you do not want to be re-using this same class in images elsewhere because they too will also be at zero-right/zero-bottom of their respective containers, due to having same the class.

As for the 'unrequired <br> tags', -looking at your site just now in Firefox reveals a bit more not working correctly on your page (except for the class="image" images being in the lower-right corners of "contentBox", which as-written, is working perfectly). ? Get it work right in Firefox and I bet you will discover that you do not need the <br>s...

If you want a 'image' to be in the absolute lowest-righthand corner of the [U]page[/U], it has to be absolute-positioned, and not be inside any DIV or container except for <body>. (i.e., make [B]<img src="image.gif class="image" style="position:absolute; right:0; bottom:0;" />[/B] come right [I]after[/I] the opening <body>, or right [U]before[/U] the closing </body>, and then, it too shall work. If it is inside of [I]any[/I] container (div, td, etc) it will only be at the lower-right of [I]THAT[/I] element, and not the page... ?

edit:

hmm... -trying that and not getting it to work as it should... ?

edit:

okay, -figured out what "mainText" is... it is your container. Try this:

<div id="mainText" [B]style="position:relative;"[/B]>

[B]<img src="../art/rightBCorner.gif" alt="right corner image" class="image" />[/B][/QUOTE]


This puts the ' image with class="image" ' in the lower right-hand corner of that container. To get it to lower R-H corner of page, a similar process. But the image in "absolute" (out of the document flow), so the [I]container[/I] needs to be "position:relative;" to make this work...
Copy linkTweet thisAlerts:
@impulseauthorJan 12.2007 — I fixed the width issue. That is not causing the problem with the block level elements.

I will work on the image issue. I want the image to be at the bottom of the container tags.
Copy linkTweet thisAlerts:
@impulseauthorJan 15.2007 — Still not getting the results I desire! Any suggestions??

In my contentBox div tags I want a image to appear in the bottom right corner. The image is floating right of the contentBox. It just not at the bottom of the contentBox. I'm using an in-line style.

See updated code:
[CODE]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>IMPulse NC, INC. - Traction Power Aftermarket</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />

<link rel="stylesheet" type="text/css" href="../css/pop_style.css" />
<link rel="stylesheet" type="text/css" href="../css/mainLayout.css" />

<style type="text/css">
/* HTML selectors start */
h5.indent {
margin-left:25px;
}

li.list {
list-style-image:url(../art/arrow.gif);
}
/* HTML selectors end */

/* ID selectors start */
#mainText {
height:700px;
font-family:Arial, Helvetica, sans-serif;
font-size:14px;
text-align:left;
margin-left:1%;
margin-right:1%;
padding: 10px 5px;
word-spacing:3px;
}

/* id ends here */

/* class starts here */
/*.space {
margin-left:2px;
}
*/
.contentBox {
width:97%;
height:10%;
background: url(../art/leftCorner_5.gif) top left no-repeat;
background-color:#6699cc;
padding:5px 0px 0px 0px;
margin-left:1%;


}
/*
.image {
position:absolute;
bottom:0;
right:0;
}


/* class ends here */
</style>

<script language="JavaScript" type="text/JavaScript">
<!-- function MM_reloadPage(init) { //reloads the window if Nav4 resized if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) { document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }} else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload(); } MM_reloadPage(true); //-->
</script>
</head>

<body>
<!-- CASCADING POPUP MENUS v5.2 by Angus Turnbill http://www.twinhelix.com -->
<script language="javascript" type="text/javascript" src="../js/pop_core.js"></script>
<script language="javascript" type="text/javascript" src="../js/pop_data.js"></script>

<!-- border begins here -->
<div id="border">

<!-- second nav start here -->
<div id="secNavBar"><a href="../index.htm">Home</a>&nbsp; |&nbsp; <a href="quality.htm">Quality</a>&nbsp; |&nbsp; <a href="contactUs.htm">Contact Us</a>&nbsp; | <a href="siteMap.htm">&nbsp;Site Map</a></div>

<!-- logo starts here -->
<div id="logo">
<img src="../art/NewLogo.jpg" alt="Logo of IMPulse NC, INC." usemap="#Map" />
<map name="Map" id="Map">
<area shape="rect" coords="5,3,280,74" href="../index.htm" alt="Return to home page" />
</map>
</div>

<!-- primary navigation div tags starts here -->
<div id="priNav">
<a id="home" name="home" style="visibility:hidden;">Home</a>
<!-- primary navigation div tags ends here -->
</div>

<!-- main text starts here -->
<div id="mainText">
<h2>Traction Power Aftermarket Products </h2>

<p style="font-size:14px;font-style:normal;font-weight:normal;">IMPulse NC, INC. manufactures the best relays and electrical devices to be offered in the traction substation industry.</p>
<p>

Below is a complete list of aftermarket devices that we offered. </p>

<!-- AC Ground Fault Relay -->
<div class="contentBox">
<h5 class="indent">AC Ground Fault Relay</h5><br />
<img src="#" alt="IR6140 / 6060" width="100" height="100" style="float:left;margin-top:1%;padding:5px 5px 5px 5px;" />
<p class="space">IMP-151-D AC Ground Fault Relay is designed to be used in grounded AC power distribution systems of 600 volts or less.</p><br />
<p class="space">To learn more view pdf or text-only.
</p>
<img src="../art/rightBCorner.gif" alt="right corner image" style="float:right;right:0;bottom:0;" />
</div><br />

<!-- Bus Over/Under Voltage -->
<div class="contentBox">
<h5 class="indent">Bus Over/Under Voltage</h5><br />
<img src="#" alt="IR6140 / 6060" width="100" height="100" style="float:left;margin-top:1%;padding:5px 5px 5px 5px;" />
<p class="space">Bus Over/Under Relay consists of a sending unit and an adjustable relay unit. The sending unit connects to the voltage to be monitored; it is self powered. The receiver consists of a fiber optic receiver.</p>
<br />
<p class="space">To learn more view pdf or text-only.
</p>
<img src="../art/rightBCorner.gif" alt="right corner image" style="float:right;right:0;bottom:0;" />
</div><br />

<!-- ETS Supervisory -->
<div class="contentBox">
<h5 class="indent">ETS Supervisory</h5><br />
<img src="#" alt="IR6140 / 6060" width="100" height="100" style="float:left;margin-top:1%;padding:5px 5px 5px 5px;" />
<p class="space">ETS Supervisory Relay is normally used to provide an output from remote shorting of a wire pair while montoring for an open loop. The typical application is for remote stop buttons. </p>
<br />
<p class="space">To learn more view pdf or text-only.
</p>
<img src="../art/rightBCorner.gif" alt="right corner image" style="float:right;right:0;bottom:0;" />
</div><br />


<!-- main text ends here -->
</div>

<div id="btm_Bar">
100 IMPulse Way • Mount Olive, North Carolina 28365 • Main (919) 658-2200 • Fax (919) 658-2268<br /> &copy;2006 IMPulse NC, Inc. All Rights Reserved. </div>
</div>

<script language="javascript" type="text/javascript" src="../js/pop_events.js"></script>
</body>
</html>
[/CODE]
Copy linkTweet thisAlerts:
@WebJoelJan 15.2007 — There are probably a dozen ways to get this done, -I am glad that you are exploring every way that doesn't work. ? That is the sign of a good inventor (at least, according to Thomas A. Edison).

Anyway, again but with a slightly different flavour, this works:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<title>IMPulse NC, INC. - Traction Power Aftermarket</title>

<meta http-equiv="content-type" content="text/html; charset=utf-8" />

<link rel="stylesheet" type="text/css" href="../css/pop_style.css" />

<link rel="stylesheet" type="text/css" href="../css/mainLayout.css" />

<style type="text/css">

/* HTML selectors start */

h5.indent {

margin-left:25px;

}

li.list {

list-style-image:url(../art/arrow.gif);

}

/* HTML selectors end */

/* ID selectors start */

#mainText {

height:700px;

font-family:Arial, Helvetica, sans-serif;

font-size:14px;

text-align:left;

margin-left:1%;

margin-right:1%;

padding: 10px 5px;

word-spacing:3px;

}

/* id ends here */

/* class starts here */

/*.space {

margin-left:2px;

}

*
/

.contentBox {

position:relative;

width:97%;

height:10%;

background: url(../art/leftCorner_5.gif) top left no-repeat;

background-color:#6699cc;

padding:5px 0px 0px 0px;

margin-left:1%;

}

[B].contentBox span {position:absolute;right:0; bottom:0;} [/B]

/*

.image {

position:absolute;

bottom:0;

right:0;

}


/* class ends here */

</style>

<script language="JavaScript" type="text/JavaScript">

<!-- function MM_reloadPage(init) { //reloads the window if Nav4 resized if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) { document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }} else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload(); } MM_reloadPage(true); //-->

</script>

</head>

<body>

<!-- CASCADING POPUP MENUS v5.2 by Angus Turnbill http://www.twinhelix.com -->

<script language="javascript" type="text/javascript" src="../js/pop_core.js"></script>

<script language="javascript" type="text/javascript" src="../js/pop_data.js"></script>

<!-- border begins here -->

<div id="border">

<!-- second nav start here -->

<div id="secNavBar"><a href="../index.htm">Home</a>&nbsp; |&nbsp; <a href="quality.htm">Quality</a>&nbsp; |&nbsp; <a href="contactUs.htm">Contact Us</a>&nbsp; | <a href="siteMap.htm">&nbsp;Site Map</a></div>

<!-- logo starts here -->

<div id="logo">

<img src="../art/NewLogo.jpg" alt="Logo of IMPulse NC, INC." usemap="#Map" />

<map name="Map" id="Map">

<area shape="rect" coords="5,3,280,74" href="../index.htm" alt="Return to home page" />

</map>

</div>

<!-- primary navigation div tags starts here -->

<div id="priNav">

<a id="home" name="home" style="visibility:hidden;">Home</a>

<!-- primary navigation div tags ends here -->

</div>

<!-- main text starts here -->

<div id="mainText">

<h2>Traction Power Aftermarket Products </h2>

<p style="font-size:14px;font-style:normal;font-weight:normal;">IMPulse NC, INC. manufactures the best relays and electrical devices to be offered in the traction substation industry.</p>

<p>


Below is a complete list of aftermarket devices that we offered. </p>

<!-- AC Ground Fault Relay -->

<div class="contentBox">

<h5 class="indent">AC Ground Fault Relay</h5><br />

<img src="#" alt="IR6140 / 6060" width="100" height="100" style="float:left;margin-top:1%;padding:5px;" />

<p class="space">IMP-151-D AC Ground Fault Relay is designed to be used in grounded AC power distribution systems of 600 volts or less.</p><br />

<p class="space">To learn more view pdf or text-only.

</p>

[B]<span><img src="../art/rightBCorner.gif" alt="right corner image" /></span>[/B]

</div><br />

<!-- Bus Over/Under Voltage -->

<div class="contentBox">

<h5 class="indent">Bus Over/Under Voltage</h5><br />

<img src="#" alt="IR6140 / 6060" width="100" height="100" style="float:left;margin-top:1%;padding:5px" />

<p class="space">Bus Over/Under Relay consists of a sending unit and an adjustable relay unit. The sending unit connects to the voltage to be monitored; it is self powered. The receiver consists of a fiber optic receiver.</p>

<br />

<p class="space">To learn more view pdf or text-only.

</p>

[B]<span><img src="../art/rightBCorner.gif" alt="right corner image" /></span>[/B]

</div><br />

<!-- ETS Supervisory -->

<div class="contentBox">

<h5 class="indent">ETS Supervisory</h5><br />

<img src="#" alt="IR6140 / 6060" width="100" height="100" style="float:left;margin-top:1%;padding:5px;" />

<p class="space">ETS Supervisory Relay is normally used to provide an output from remote shorting of a wire pair while montoring for an open loop. The typical application is for remote stop buttons. </p>

<br />

<p class="space">To learn more view pdf or text-only.

</p>

[B]<span><img src="../art/rightBCorner.gif" alt="right corner image" /></span>[/B]

</div><br />


<!-- main text ends here -->

</div>

<div id="btm_Bar">

100 IMPulse Way • Mount Olive, North Carolina 28365 • Main (919) 658-2200 • Fax (919) 658-2268<br /> &copy;2006 IMPulse NC, Inc. All Rights Reserved. </div>

</div>

<script language="javascript" type="text/javascript" src="../js/pop_events.js"></script>

</body>

</html>[/QUOTE]
Copy linkTweet thisAlerts:
@impulseauthorJan 18.2007 — Thanks! That fixed my problem. New problem - what is going on in FF? My page looks like crap. Looks fine in NE and IE.

How can i fix this issue?:eek:
Copy linkTweet thisAlerts:
@WebJoelJan 18.2007 — ... New problem - what is going on in FF? My page looks like crap. Looks fine in NE and IE.[/QUOTE] -Really? I thought it looked okay in my Fx, -I might have my browser's styles overriding the client's styles. I should turn that off so I can see what the code *really looks like*... (Just so tired of hitting pages with pukish background-colors and horribly-chosen uber-small fonts...) ?
Copy linkTweet thisAlerts:
@WebJoelJan 18.2007 — ... New problem - what is going on in FF? My page looks like crap. Looks fine in NE and IE.[/QUOTE] -Really? I thought it looked okay in my Fx, -I might have my browser's styles overriding the client's styles. I should turn that off so I can see what the code *really looks like*... (Just so tired of hitting pages with pukish background-colors and horribly-chosen uber-small fonts...) ?

edit: -Try this in Firefox:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"

"http://www.w3.org/TR/html4/strict.dtd">

<head>

<title>IMPulse NC, INC. - Traction Power Aftermarket</title>

<meta http-equiv="content-type" content="text/html; charset=utf-8" />

<link rel="stylesheet" type="text/css" href="../css/pop_style.css" />

<link rel="stylesheet" type="text/css" href="../css/mainLayout.css" />

<style type="text/css">

/* HTML selectors start */

h5.indent {

margin-left:25px;

}

li.list {

list-style-image:url(../art/arrow.gif);

}

/* HTML selectors end */

/* ID selectors start */

#mainText {

height:700px;

font-family:Arial, Helvetica, sans-serif;

font-size:14px;

text-align:left;

margin-left:1%;

margin-right:1%;

padding: 10px 5px;

word-spacing:3px;

}

/* id ends here */

/* class starts here */

/*.space {

margin-left:2px;

}

*
/

.contentBox {

position:relative;

width:97%;

height:170px;

background: url(../art/leftCorner_5.gif) top left no-repeat;

background-color:#6699cc;

padding:5px 0px 0px 0px;

margin:0 auto;

}

.contentBox span {position:absolute;right:0; bottom:0;}

/*

.image {

position:absolute;

bottom:0;

right:0;

}


/* class ends here */

</style>

<script language="JavaScript" type="text/JavaScript">

<!-- function MM_reloadPage(init) { //reloads the window if Nav4 resized if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) { document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }} else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload(); } MM_reloadPage(true); //-->

</script>

</head>

<body>

<!-- CASCADING POPUP MENUS v5.2 by Angus Turnbill http://www.twinhelix.com -->

<script language="javascript" type="text/javascript" src="../js/pop_core.js"></script>

<script language="javascript" type="text/javascript" src="../js/pop_data.js"></script>

<!-- border begins here -->

<div id="border">

<!-- second nav start here -->

<div id="secNavBar"><a href="../index.htm">Home</a>&nbsp; |&nbsp; <a href="quality.htm">Quality</a>&nbsp; |&nbsp; <a href="contactUs.htm">Contact Us</a>&nbsp; | <a href="siteMap.htm">&nbsp;Site Map</a></div>

<!-- logo starts here -->

<div id="logo">

<img src="../art/NewLogo.jpg" alt="Logo of IMPulse NC, INC." usemap="#Map" />

<map name="Map" id="Map">

<area shape="rect" coords="5,3,280,74" href="../index.htm" alt="Return to home page" />

</map>

</div>

<!-- primary navigation div tags starts here -->

<div id="priNav">

<a id="home" name="home" style="visibility:hidden;">Home</a>

<!-- primary navigation div tags ends here -->

</div>

<!-- main text starts here -->

<div id="mainText">

<h2>Traction Power Aftermarket Products </h2>

<p style="font-size:14px;font-style:normal;font-weight:normal;">IMPulse NC, INC. manufactures the best relays and electrical devices to be offered in the traction substation industry.</p>

<p>

Below is a complete list of aftermarket devices that we offered. </p>

<!-- AC Ground Fault Relay -->

<div class="contentBox">

<h5 class="indent">AC Ground Fault Relay</h5><br />

<img src="#" alt="IR6140 / 6060" width="100" height="100" style="float:left;margin-top:1%;padding:5px;" />

<p class="space">IMP-151-D AC Ground Fault Relay is designed to be used in grounded AC power distribution systems of 600 volts or less.</p>

<p>

To learn more view pdf or text-only.

</p>

<span><img src="../art/rightBCorner.gif" alt="right corner image" /></span>

</div><br />

<!-- Bus Over/Under Voltage -->

<div class="contentBox">

<h5 class="indent">Bus Over/Under Voltage</h5><br />

<img src="#" alt="IR6140 / 6060" width="100" height="100" style="float:left;margin-top:1%;padding:5px" />

<p class="space">Bus Over/Under Relay consists of a sending unit and an adjustable relay unit. The sending unit connects to the voltage to be monitored; it is self powered. The receiver consists of a fiber optic receiver.</p>

<p>

To learn more view pdf or text-only.

</p>

<span><img src="../art/rightBCorner.gif" alt="right corner image" /></span>

</div><br />

<!-- ETS Supervisory -->

<div class="contentBox">

<h5 class="indent">ETS Supervisory</h5><br />

<img src="#" alt="IR6140 / 6060" width="100" height="100" style="float:left;margin-top:1%;padding:5px;" />

<p class="space">ETS Supervisory Relay is normally used to provide an output from remote shorting of a wire pair while montoring for an open loop. The typical application is for remote stop buttons.

<br /><p>

<p>

To learn more view pdf or text-only.

</p>

<span><img src="../art/rightBCorner.gif" alt="right corner image" /></span>

</div><br />


<!-- main text ends here -->

</div>

<div id="btm_Bar">

100 IMPulse Way • Mount Olive, North Carolina 28365 • Main (919) 658-2200 • Fax (919) 658-2268<br /> &copy;2006 IMPulse NC, Inc. All Rights Reserved. </div>

</div>

<script language="javascript" type="text/javascript" src="../js/pop_events.js"></script>

</body>

</html>[/QUOTE]
I changed some %margins to px, and/or otherwise "centered" them using "margin:0 auto" which, -combined with a width, effectively "centers" the element. E.g.,:.contentBox {

position:relative;

[B]width:97%;[/B]

height:170px;

background: url(../art/leftCorner_5.gif) top left no-repeat;

background-color:#6699cc;

padding:5px 0px 0px 0px;

[B]margin:0 auto;[/B]

}[/QUOTE]
Copy linkTweet thisAlerts:
@impulseauthorJan 18.2007 — Only problem now is that the right corner image is not completely at the bottom.
Copy linkTweet thisAlerts:
@CentauriJan 19.2007 — It would make more sense to me to use the bottom right image as background for the div itself, positioned bottom right. The top left background can then be background for the first element in the div - no tricky absolute positioning required..

Cheers

Graeme
Copy linkTweet thisAlerts:
@impulseauthorJan 22.2007 — Thanks! Problem solved.
Copy linkTweet thisAlerts:
@WebJoelJan 22.2007 — Only problem now is that the right corner image is not completely at the bottom.[/QUOTE] Or, use a 'negative integer' if you must. -Instead of "position:absolute; bottom:[B]0[/B]; right:[B]0[/B];", go with "[B]-1px;[/B]" or whatever it takes to be abs-bottom/right. (I like the background-image w/ abs-position suggestion better, tho').

Also, -what-up with my double-posts above?? ? Moderator, okay to edit/remove dbls, if you wish.
×

Success!

Help @impulse spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...