By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,785 Members | 1,072 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,785 IT Pros & Developers. It's quick & easy.

Padding in NS7

P: n/a
Is there a way to get NS7 to right-pad? With padding-right, it's completely
ignored. With padding, it pads top, bottom and left, but not right. In fact
if I push the padding up to a large number, it pushes the content out past
the right edge of the item. How can I get it to behave?

--
Alan Little
Phorm PHP Form Processor
http://www.phorm.com/
Jul 20 '05 #1
Share this Question
Share on Google+
10 Replies


P: n/a
Els
Alan Little wrote:
Is there a way to get NS7 to right-pad?
It already does. (on my pages at least)
With padding-right, it's completely
ignored. With padding, it pads top, bottom and left, but not right. In fact
if I push the padding up to a large number, it pushes the content out past
the right edge of the item. How can I get it to behave?


url?

--
Els
http://locusmeus.com/
Sonhos vem. Sonhos vo. O resto imperfeito.
- Renato Russo -

Jul 20 '05 #2

P: n/a
DU
Alan Little wrote:
Is there a way to get NS7 to right-pad? With padding-right, it's completely
ignored. With padding, it pads top, bottom and left, but not right. In fact
if I push the padding up to a large number, it pushes the content out past
the right edge of the item. How can I get it to behave?


Maybe posting an url showing the problem you see could help here.

DU
Jul 20 '05 #3

P: n/a
Carved in mystic runes upon the very living rock, the last words of Els
of comp.infosystems.www.authoring.stylesheets make plain:
Alan Little wrote:
Is there a way to get NS7 to right-pad?


It already does. (on my pages at least)
With padding-right, it's completely
ignored. With padding, it pads top, bottom and left, but not right.
In fact if I push the padding up to a large number, it pushes the
content out past the right edge of the item. How can I get it to
behave?


url?


http://dev.highland-alumni.com/temp/

In l1.php, in NavPanel I have

padding: 10px;
padding-right: 20px;

NS ignores the padding-right, and doesn't even do the 10px padding on the
right side of the element. In fact, it's even violating the width
property of the element, 170px, which reaches to the edge of the shadow.
In l2.php I have

padding: 30px;
padding-right: 20px;

to show this more clearly. IE and Opera display both pages just fine.

--
Alan Little
Phorm PHP Form Processor
http://www.phorm.com/
Jul 20 '05 #4

P: n/a
Alan Little wrote:
Els wrote:
Alan Little wrote:
Is there a way to get NS7 to right-pad?
url?


http://dev.highland-alumni.com/temp/


That's directory with files.
In l1.php, in NavPanel I have
I loaded that file, but saw no css links. In fact, I didn't find any
HTML, either, despite you having advertised it as type text/html. Here's
a sample of what I did find:
<HTPHEAD TEMPLATE="Temp1" TITLE="Lorem Ipsum">

<HTPVAR NAME="NavPanel">
<IMG SRC="{{AppURI}}graphics/boardb.gif" WIDTH=120 HEIGHT=50
ALT="Board of Directors">
<BR><BR>

NS ignores the padding-right


What do you expect NS to do with your content? A Google search for
"HTPHEAD" reveals no clue about what this is.

--
Brian (remove "invalid" from my address to email me)
http://www.tsmchughs.com/
Jul 20 '05 #5

P: n/a
Els
Alan Little wrote:
Carved in mystic runes upon the very living rock, the last words of Els
of comp.infosystems.www.authoring.stylesheets make plain:
Alan Little wrote:
Is there a way to get NS7 to right-pad?
It already does. (on my pages at least)

With padding-right, it's completely
ignored. With padding, it pads top, bottom and left, but not right.
In fact if I push the padding up to a large number, it pushes the
content out past the right edge of the item. How can I get it to
behave?


url?


http://dev.highland-alumni.com/temp/

In l1.php, in NavPanel I have


You have a funny mix of divs and half a table.
That table only is present by it's ending. Where's the rest?
Give your page a doctype, validate it, and then see if the
browser is obeying you :-)
padding: 10px;
padding-right: 20px;

NS ignores the padding-right, and doesn't even do the 10px padding on the
right side of the element. In fact, it's even violating the width
property of the element, 170px, which reaches to the edge of the shadow.
In l2.php I have
Same thing as above.
padding: 30px;
padding-right: 20px;

to show this more clearly. IE and Opera display both pages just fine.


I suppose they are very forgiving ;-)

--
Els
http://locusmeus.com/
Sonhos vem. Sonhos vo. O resto imperfeito.
- Renato Russo -

Jul 20 '05 #6

P: n/a
Els
Brian wrote:
Alan Little wrote:
Els wrote:
Alan Little wrote:

Is there a way to get NS7 to right-pad?

url?


http://dev.highland-alumni.com/temp/


That's directory with files.
In l1.php, in NavPanel I have


I loaded that file, but saw no css links. In fact, I didn't find any
HTML, either, despite you having advertised it as type text/html. Here's
a sample of what I did find:

<HTPHEAD TEMPLATE="Temp1" TITLE="Lorem Ipsum">

<HTPVAR NAME="NavPanel">
<IMG SRC="{{AppURI}}graphics/boardb.gif" WIDTH=120 HEIGHT=50
ALT="Board of Directors">
<BR><BR>


That's funny, I found this:
<html>
<head>
<title>Highland Academy Alumni Association - Lorem Ipsum</title>
<link REL=STYLESHEET HREF="alum.css" TYPE="text/css">

</head>

(both directly after him posting it, and again after reading
your post)
NS ignores the padding-right


What do you expect NS to do with your content? A Google search for
"HTPHEAD" reveals no clue about what this is.


--
Els
http://locusmeus.com/
Sonhos vem. Sonhos vo. O resto imperfeito.
- Renato Russo -

Jul 20 '05 #7

P: n/a
Els
Els wrote:
http://dev.highland-alumni.com/temp/


That's directory with files.
In l1.php, in NavPanel I have


I loaded that file, but saw no css links. In fact, I didn't find any
HTML, either, despite you having advertised it as type text/html.
Here's a sample of what I did find:

<HTPHEAD TEMPLATE="Temp1" TITLE="Lorem Ipsum">

<HTPVAR NAME="NavPanel">
<IMG SRC="{{AppURI}}graphics/boardb.gif" WIDTH=120 HEIGHT=50
ALT="Board of Directors">
<BR><BR>

That's funny, I found this:
<html>
<head>
<title>Highland Academy Alumni Association - Lorem Ipsum</title>
<link REL=STYLESHEET HREF="alum.css" TYPE="text/css">

</head>


No, I see, you picked the l1.html instead of the l1.php.

--
Els
http://locusmeus.com/
Sonhos vem. Sonhos vo. O resto imperfeito.
- Renato Russo -

Jul 20 '05 #8

P: n/a
Carved in mystic runes upon the very living rock, the last words of
Brian of comp.infosystems.www.authoring.stylesheets make plain:
Alan Little wrote:
Els wrote:
Alan Little wrote:

Is there a way to get NS7 to right-pad?

url?
http://dev.highland-alumni.com/temp/


That's directory with files.


Yes, I gave the URL to the directory to make it easier to see all the
files being used.
In l1.php, in NavPanel I have


I loaded that file, but saw no css links. In fact, I didn't find any
HTML, either, despite you having advertised it as type text/html.
Here's a sample of what I did find:
<HTPHEAD TEMPLATE="Temp1" TITLE="Lorem Ipsum">


You loaded l1.html rather than l1.php. The HTML file is merely a
template.
What do you expect NS to do with your content? A Google search for
"HTPHEAD" reveals no clue about what this is.


It's a special tag used by the template processor.

--
Alan Little
Phorm PHP Form Processor
http://www.phorm.com/
Jul 20 '05 #9

P: n/a
Carved in mystic runes upon the very living rock, the last words of Els
of comp.infosystems.www.authoring.stylesheets make plain:
Alan Little wrote:
Carved in mystic runes upon the very living rock, the last words of
Els of comp.infosystems.www.authoring.stylesheets make plain:
Alan Little wrote:

Is there a way to get NS7 to right-pad?

It already does. (on my pages at least)
With padding-right, it's completely
ignored. With padding, it pads top, bottom and left, but not right.
In fact if I push the padding up to a large number, it pushes the
content out past the right edge of the item. How can I get it to
behave?

url?


http://dev.highland-alumni.com/temp/

In l1.php, in NavPanel I have


You have a funny mix of divs and half a table.
That table only is present by it's ending. Where's the rest?
Give your page a doctype, validate it, and then see if the
browser is obeying you :-)


Doh! I've been working on my local system. I created those temp files and
uploaded them to the server, but didn't upload the latest header and
footer files. This whole site is in the process of being converted from
some very old, very ugly HTML. Without the table fragment, NS still
doesn't obey.

So, I added a DOCTYPE tag and now IE and Opera are doing the same thing.
Hey, at least we've got consistency now!

Could someone give me a shove in the right direction to do what I'm
trying to do here? It seems like it should be pretty straightforward.

--
Alan Little
Phorm PHP Form Processor
http://www.phorm.com/
Jul 20 '05 #10

P: n/a
Els
Alan Little wrote:
>With padding-right, it's completely
>ignored. With padding, it pads top, bottom and left, but not right.
>In fact if I push the padding up to a large number, it pushes the
>content out past the right edge of the item. How can I get it to
>behave?

http://dev.highland-alumni.com/temp/

In l1.php, in NavPanel I have

So, I added a DOCTYPE tag and now IE and Opera are doing the same thing.
Hey, at least we've got consistency now!

Could someone give me a shove in the right direction to do what I'm
trying to do here? It seems like it should be pretty straightforward.


Found it :-)
You can see it yourself, if you add *{border:1px solid red;}
to the top of your stylesheet. See what happens after you
add a larger padding-right.

The padding does get added, but it's added to the width of
the div, instead of substracted to give the content less space.

So while adding padding, you should diminish the width.

Besides, validate your stylesheet, there are a few errors in
it. (a typo and some non-existent values)

--
Els
http://locusmeus.com/
Sonhos vem. Sonhos vo. O resto imperfeito.
- Renato Russo -

Jul 20 '05 #11

This discussion thread is closed

Replies have been disabled for this discussion.