0

hai friend's how to use the bullets in HTML , we use the editor for hmtl is dreamviewer , ya i use the bullets but the aligment change's if i use the bullets'

6
Contributors
9
Replies
10
Views
7 Years
Discussion Span
Last Post by nats01282
0

Hi,

i think , bullet means " unordered list".
i think,
<body>
<ul type="disc">
<li> x </li>
<li> Y </li>
</ul>
</body>
it works.

0

Just add:

<style type="text/css">
<!--
li {
	text-indent: -30px;
}
-->
</style>

Adjust as needed. Hope this helps.

0

i noticed in dreamweaver that you have to put a . in front of the css style so

<!--
.li {
	text-indent: -30px;
}
-->
0

i noticed in dreamweaver that you have to put a . in front of the css style so

<!--
.li {
	text-indent: -30px;
}
-->

You only have to put the dot in the front of the style when you are basically creating your own style. Without the dot, like I had sent, the style applies across the board to every li tag in the document.

Basically, if you use the tag selector, the style applies across the board to every tag as defined in the style sheet. If you create a class (the ones with the dots) then that style can be applied to any tag.

So if you needed all of the LI tags to not indent, you would use the style sheet like I posted.

If you only needed one specific instance of LI tags to not indent, then it should be relegated to a class and applied only in the instances which it is needed.

If you have any other questions, just ask! :)

0

BTW: this isn't php - should be moved to CSS.

@nats .li means a 'class' called 'li' in normal css parlance.

If you want a bullet list with no indent:

ul{
  margin:0;
  padding:0;
  list-style-type: ####;
}
li{
  margin:0;
  padding:0;
}

The list-style-type controls the bullet type. You can set it to 'none', 'square','circle','disc'

Edited by diafol: n/a

0

You only have to put the dot in the front of the style when you are basically creating your own style. Without the dot, like I had sent, the style applies across the board to every li tag in the document.

Basically, if you use the tag selector, the style applies across the board to every tag as defined in the style sheet. If you create a class (the ones with the dots) then that style can be applied to any tag.

So if you needed all of the LI tags to not indent, you would use the style sheet like I posted.

If you only needed one specific instance of LI tags to not indent, then it should be relegated to a class and applied only in the instances which it is needed.

If you have any other questions, just ask! :)

Thank you Wraithmanilian,

That is some thing i did not know, lol still alot to learn myself
Been teaching myself html, css and php,
Not been able to get into college and do it, so thought il will do it my self

0

Hope that I helped, and good luck. I was once where you are now. :)

yea that will come in handy. lol write that down in my notes :)

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.