|
Is there a way to put spaces between the list item, say bullete, and the texts? I tried putting some spaces using $nbsp; between the list item and the texts but it only work for the first line. If the line of texts wrap then the wrap part is not align with the above line.
Thanks!
ljCharlie
|
|
|
|
|
You need to set the padding-left style on the <li> element.
"These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer
|
|
|
|
|
Thanks for the help. Is this what you mean:
<li style="padding-left">The situation---opportunity, problem, issue, need---that <br />
your proposal addresses.
I tried this but it doesn't work. What is padding-left mean?
ljCharlie
|
|
|
|
|
You're nearly there - you just need to tell it how much space you want.
Also, don't forget the list tags (<ul> , <ol> , etc.):
- The situation---opportunity, problem, issue, need---that
your proposal addresses. - The situation---opportunity, problem, issue, need---that
your proposal addresses. - The situation---opportunity, problem, issue, need---that
your proposal addresses.
<ul>
<li>The situation---opportunity, problem, issue, need---that <br />
your proposal addresses.</li>
<li style="padding-left:10px;">The situation---opportunity, problem, issue, need---that <br />
your proposal addresses.</li>
<li style="padding-left:20px;">The situation---opportunity, problem, issue, need---that <br />
your proposal addresses.</li>
</ul>
"These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer
|
|
|
|
|
Thank very much! You've been a tremendous help! It works!
ljCharlie
|
|
|
|
|
I have one more question regarding <li>,<ul>,and <ol> and I wonder if you can helpme again. Here's what I have in my CSS file.
li {
list-style-position: outside;
list-style-type: disc;
padding-left: 10px;
}
ul {
padding-left: 10px;
list-style-position: outside;
list-style-type: upper-alpha;
}
ol {
padding-left: 10px;
list-style-position: outside;
list-style-type: decimal;
}
And here's what I have in my code:
<ul>
<li>Explain how the proposed project goals were met.</li>
<li> Describe the impact of project and who was impacted?</li>
<ol>
<li>Published articles</li>
<li>Conferences</li>
<li>Presentations</li>
<li>Additional funding received (matching grants or other funding)</li>
<li>related to proposal</li>
</ol>
<li>Budget/expenditures</li>
</ul>
But the problem is, anytime when there is <li> in front of the texts, the list item type is a disc. This is what I want. If the <li> is under the <ol>, I want the list item to type decimal. I guess my point is that I the <li> to change type if it is under different <ul> or <ol> tag.
I hope you understand what I'm trying to do.
Many thanks to your help!
ljCharlie
|
|
|
|
|
If I am reading this right, you shouldn't need the list-style-type at all.
With no list-style-type applied in the stylesheet, you will get:- Explain how the proposed project goals were met.
- Describe the impact of project and who was impacted?
- Published articles
- Conferences
- Presentations
- Additional funding received (matching grants or other funding)
- related to proposal
- Budget/expenditures
If you apply a style to an <li> element, it will override the style applied to the <ul> or <ol> elements. If you want to apply different styles depending on the type of list, you can specify the element path in the stylesheet:
li {
padding-left: 10px;
}
ul li {
list-style-type: square;
}
ol li {
list-style-type: lower-roman;
} The styles in the ul li section will apply to an <li> tag under a <ul> tag, and the ol li section will apply to an <li> tag under an <ol> tag. The styles in the li section will apply to both:- Explain how the proposed project goals were met.
- Describe the impact of project and who was impacted?
- Published articles
- Conferences
- Presentations
- Additional funding received (matching grants or other funding)
- related to proposal
- Budget/expenditures
"These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer
|
|
|
|
|
Thank you. It works wonderfully now.
One more question. Because li does not have a list-style-type, li type will automatically change base on and if I have 3 or 4 levels deep of lists, correct?
ljCharlie
|
|
|
|
|
The easiest way to find out is to play around with the settings and see what happens.
"These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer
|
|
|
|
|
Thanks! That's what I'm doing now, trying to have find a setting I like. However, many thanks to your help.
ljCharlie
|
|
|
|
|
Hi
Does anyone know how to insert that small little picture found next to a URL on a site?
tx
|
|
|
|
|
Is it.. next to the URL or ... 'left' to the URL... its called as the icon... r u asking the same as I am telling here??? if so, CSS will be of good help
I was born intelligent Education ruined me!.
|
|
|
|
|
If you mean the favicon, this article by Chris M should help
Favicon Article[^]
So few words, and yet so precise! Megan, you're a poet of mathematical accuracy! - Jörgen Sigvardsson
|
|
|
|
|
Hi,
I am working on a Win2K machie with IIS and .net installed. I have made a website which i am trying to view. I have static ip for my computer (I have a cable connection). Anyone on the internet can ping as well as ftp my ip address, but the moment they try to open any htm file they get a error that the "Page cannot be dispalayed". at the bottom of the screen it says "cannot find server or DNS error". On my computer i can view it as http://ipadd/index.html but no one else can view it. I think it has to do with myuser permissions on the wwwroot but am not sure. Please help me out.
Thanx in advance,
Pooja
|
|
|
|
|
This message usually isn't caused by a permissions failure, but by a router or DNS problem. Is there a host (A) record in your DNS database that points to your IP address from your domain name? If not, add one. If so, there may be something odd going on caused by the .Net Framework. I was chatting with another CPian today just after he installed the .Net 1.1 package on a previously working server and it messed up the permissions on the I_USR account. In his case it just prevented pages from accessing the databases they depend on, but it might have other effects. You could try to repost the question with more detail in the topic ('IIS Fails when .Net Installed', for example) to attract more viewers to it.
"Please don't put cigarette butts in the urinal. It makes them soggy and hard to light" - Sign in a Bullhead City, AZ Restroom
|
|
|
|
|
Perhaps your ISP is blocking HTTP traffic.
Mine does
|
|
|
|
|
Hi
I did finally get it working. It is cause the ISP provider blocked port 80. once i changed the port no to any other no like 8081 it started working.
Thanx for the info
Pooja
|
|
|
|
|
In my tag I have this:
<body bgcolor="#ffffff" onLoad="MM_preloadImages('images/1_home_f2.gif')>
But I also have:
function MM_preloadImages() {
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();<br />
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)<br />
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}<br />
}
In my .js file that I call from the .shtml page. The problem is this two have the MM_preloadImages name and it's conflicting. If in my tag I have the MM_preloadImages then the .js file will not work and vise versa. What can I do to have both of them work?
Many thanks in advance!
ljCharlie
|
|
|
|
|
Dear friend,
I cannot understand what the problem is. The one in the BODY tag is invoking the other. They should have the same name! What it does basically is that onLoad (when the page completes loading) the MM_preloadImages function is invoked passing one argument. Then the function checks for any arguments and loops throught the arguments array (a=MM_preloadImages.arguments) and downloads the images to the clients memory...
This should work, unless there is something else causing problems. Do you get any errors? if yes what does the error say?
|---------------|
| theJazzyBrain |
|---------------|
|
|
|
|
|
Txoov wrote:
In my tag I have this:
maybe this is what was causing the problem
|---------------|
| theJazzyBrain |
|---------------|
|
|
|
|
|
Thanks for helping, unfortunately, that wasn't it. When I past the body tag in, I just forgot the closing quote. The problem occurs every now and then. It's not always occuring. The page is here:
Click Here
ljCharlie
|
|
|
|
|
I reloaded the page about 10 time and I didn't get any errors...
I cant think of anything else, but if you find the problem please tell.
I would like to know what the problem was.
Good luck
|---------------|
| theJazzyBrain |
|---------------|
|
|
|
|
|
Thanks for the help! I'll sure let you know.
ljCharlie
|
|
|
|
|
HI,
I created tables in MS Access.. and am quite familiar in accessing the tables from the ASP page for my site. I then saw somethin like relationships.. and started playing around it. I got the followinf stuff....
Employee (table)
- EmpId
- DeptId
- Name
Department (table)
- DeptId
- DeptHead
- Description
The Dept head at the second table is linked with the EmpId in the first table by means of the relationships....
NOW, will it be possible for me to access the first table data, by querying the second table. (In access screen I was able to see the first table data in the second table by clicking + on the field which joins them)
Please help
I was born intelligent Education ruined me!.
|
|
|
|
|
It looks like it would be more natural to link the Employee table with the Department table on the DeptID field.
Best regards,
J. Paul Schmidt - Freelance ASP Web Developer
http://www.Bullschmidt.com - Creating "dynamic" Web pages that read and write from databases...
|
|
|
|