Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > Circle bullet in Bullet Style

Reply
Thread Tools

Circle bullet in Bullet Style

 
 
Al Camp
Guest
Posts: n/a
 
      07-30-2005
I have the following code...
<style>
..bullet
{
margin-left: 60px;
text-indent: -30px;
}
</style>

<div class="bullet">•&nbsp;&nbsp;Some Text</div>

However the bullet is a small square. How could I make it display as a
(list style) circle?

(I prefer not to use <ul>, as it forces a paragraph before the list items,
and wastes space.)

TIA,
Al Camp


 
Reply With Quote
 
 
 
 
Jedi Fans
Guest
Posts: n/a
 
      07-30-2005
Al Camp wrote:
> However the bullet is a small square. How could I make it display as a
> (list style) circle?


list-style-type:circle; in css
also instead of spaces why not use padding?
 
Reply With Quote
 
 
 
 
Al Camp
Guest
Posts: n/a
 
      07-30-2005
"Jedi Fans" <"news[at]jedifans[--=dot==-]com"> wrote in message
news:...
> Al Camp wrote:
>> However the bullet is a small square. How could I make it display as a
>> (list style) circle?

>
> list-style-type:circle; in css
> also instead of spaces why not use padding?


Jedi,
Well, I had tried that with no success.
This is what I have right now, and no bullet is displayed at all.
<style>
..bullet
{
margin-left: 60px;
text-indent: -30px;
list-style-type:circle;
}
</style>
<div class="bullet">&nbsp;&nbsp;Some text</div>

I did solve the problem by using small bullet.gif as a src image in my <div>

Thanks for all your help, and I'll try to check out "padding". I'm a newbie
to HTML...

Al camp



 
Reply With Quote
 
Jedi Fans
Guest
Posts: n/a
 
      07-30-2005
Al Camp wrote:
> "Jedi Fans" <"news[at]jedifans[--=dot==-]com"> wrote in message
> news:...
>> Al Camp wrote:
>>> However the bullet is a small square. How could I make it display as a
>>> (list style) circle?

>> list-style-type:circle; in css
>> also instead of spaces why not use padding?

>
> Jedi,
> Well, I had tried that with no success.
> This is what I have right now, and no bullet is displayed at all.
> <style>
> .bullet
> {
> margin-left: 60px;
> text-indent: -30px;
> list-style-type:circle;
> }
> </style>
> <div class="bullet">&nbsp;&nbsp;Some text</div>
>
> I did solve the problem by using small bullet.gif as a src image in my <div>
>
> Thanks for all your help, and I'll try to check out "padding". I'm a newbie
> to HTML...
>
> Al camp
>


sorry forgot you werent using UL and LI, i do suggest that you do
though... but if your concerned about the paragraph space etc:
ul{display:inline;} in css
 
Reply With Quote
 
Toby Inkster
Guest
Posts: n/a
 
      07-30-2005
Al Camp wrote:

> (I prefer not to use <ul>, as it forces a paragraph before the list items,
> and wastes space.)


Those are not sensible reasons for avoiding a proper list.

--
Toby A Inkster BSc (Hons) ARCS
Contact Me ~ http://tobyinkster.co.uk/contact
Now Playing ~ ./sixpence_none_the_richer_-_kiss_me.ogg

 
Reply With Quote
 
Al Camp
Guest
Posts: n/a
 
      07-30-2005
"Jedi Fans" <"news[at]jedifans[--=dot==-]com"> wrote in message
news:42ebc7d9$...
> Al Camp wrote:
>> "Jedi Fans" <"news[at]jedifans[--=dot==-]com"> wrote in message
>> news:...
>>> Al Camp wrote:
>>>> However the bullet is a small square. How could I make it display as a
>>>> (list style) circle?
>>> list-style-type:circle; in css
>>> also instead of spaces why not use padding?

>>
>> Jedi,
>> Well, I had tried that with no success.
>> This is what I have right now, and no bullet is displayed at all.
>> <style>
>> .bullet
>> {
>> margin-left: 60px;
>> text-indent: -30px;
>> list-style-type:circle;
>> }
>> </style>
>> <div class="bullet">&nbsp;&nbsp;Some text</div>
>>
>> I did solve the problem by using small bullet.gif as a src image in my
>> <div>
>>
>> Thanks for all your help, and I'll try to check out "padding". I'm a
>> newbie to HTML...
>>
>> Al camp
>>

>
> sorry forgot you werent using UL and LI, i do suggest that you do
> though... but if your concerned about the paragraph space etc:
> ul{display:inline;} in css


Yep... that did the trick! Lots to learn in HTML!

Thank you for your help.
Al Camp


 
Reply With Quote
 
JDS
Guest
Posts: n/a
 
      07-30-2005
On Sat, 30 Jul 2005 17:56:25 -0400, Al Camp wrote:

> Yep... that did the trick! Lots to learn in HTML!


It has been said already, but I will just reiterate.

If something is a list, it really should use <UL> or <OL> plus <LI> --
list markup. All of the presentation can be changed, including your
initial description of "(I prefer not to use <ul>, as it forces a
paragraph before the list items, and wastes space.)", using CSS.

That extra space can be removed using CSS.

Alrighty. Just beating a point to death. Use proper markup. etc.

--
JDS |
| http://www.newtnotes.com
DJMBS | http://newtnotes.com/doctor-jeff-master-brainsurgeon/

 
Reply With Quote
 
Al Camp
Guest
Posts: n/a
 
      07-30-2005
"Jedi Fans" <"news[at]jedifans[--=dot==-]com"> wrote in message
news:42ebc7d9$...
> Al Camp wrote:
>> "Jedi Fans" <"news[at]jedifans[--=dot==-]com"> wrote in message
>> news:...
>>> Al Camp wrote:
>>>> However the bullet is a small square. How could I make it display as a
>>>> (list style) circle?
>>> list-style-type:circle; in css
>>> also instead of spaces why not use padding?

>>
>> Jedi,
>> Well, I had tried that with no success.
>> This is what I have right now, and no bullet is displayed at all.
>> <style>
>> .bullet
>> {
>> margin-left: 60px;
>> text-indent: -30px;
>> list-style-type:circle;
>> }
>> </style>
>> <div class="bullet">&nbsp;&nbsp;Some text</div>
>>
>> I did solve the problem by using small bullet.gif as a src image in my
>> <div>
>>
>> Thanks for all your help, and I'll try to check out "padding". I'm a
>> newbie to HTML...
>>
>> Al camp
>>

>
> sorry forgot you werent using UL and LI, i do suggest that you do
> though... but if your concerned about the paragraph space etc:
> ul{display:inline;} in css


Jedi,
I guess I spoke too soon. I tried your css suggestion, but the <ul>
still paragraphs before the list. If I might impose on you further...
I entered this in my css style file... (copying the convention I see in
there)
..ul {
display:inline;
list-style-type: circle;
}
Then I have this code in my page...
<ul>
<li>Some text</li>
</ul>
but, the paragraph still appears.

Am I doing something wrong?

Thanks,
Al Camp


 
Reply With Quote
 
Jedi Fans
Guest
Posts: n/a
 
      07-30-2005
Al Camp wrote:
> Jedi,
> I guess I spoke too soon. I tried your css suggestion, but the <ul>
> still paragraphs before the list. If I might impose on you further...
> I entered this in my css style file... (copying the convention I see in
> there)
> .ul {
> display:inline;
> list-style-type: circle;
> }
> Then I have this code in my page...
> <ul>
> <li>Some text</li>
> </ul>
> but, the paragraph still appears.
>
> Am I doing something wrong?
>
> Thanks,
> Al Camp
>
>

try adding margin:0;padding:0; to the ul too
 
Reply With Quote
 
Al Camp
Guest
Posts: n/a
 
      07-31-2005
"Jedi Fans" <"news[at]jedifans[--=dot==-]com"> wrote in message
news:42ec098b$...
> Al Camp wrote:
>> Jedi,
>> I guess I spoke too soon. I tried your css suggestion, but the <ul>
>> still paragraphs before the list. If I might impose on you further...
>> I entered this in my css style file... (copying the convention I see in
>> there)
>> .ul {
>> display:inline;
>> list-style-type: circle;
>> }
>> Then I have this code in my page...
>> <ul>
>> <li>Some text</li>
>> </ul>
>> but, the paragraph still appears.
>>
>> Am I doing something wrong?
>>
>> Thanks,
>> Al Camp

> try adding margin:0;padding:0; to the ul too


Jedi,
Sorry, but no go. I've checked, and there is no <br> or <p> that precedes
the list... the last line of text just ends. The text that precedes this
list is not paragraphed... just straight text.
I uploaded the latest files to http://home.comcast.net/~alcamp/index.html,
(sill under construction) but... I don't expect you to bug shoot my page.
I can only guess that I've made some other mistake somewhere on the page
that's causing this problem.
css...
..ul {
display: inline;
list-style-type: circle;
margin:0;
padding:0;
}
page code...
<ul>
<li>Some text</li>
</ul>

Thanks again,
Al Camp


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
WinXP + 350 Cisco card vicious circle... =?Utf-8?B?aG9tZXBpeGVscw==?= Wireless Networking 1 05-02-2005 10:23 PM
Cinema.Craft.Encoder.SP.v2.70.01.05, Magic.Bullet.Editor.v.1.01.for.Avid.Xpress.Pro, Magic.Bullet.Editor.v.1.01.for.Premiere.Pro, Magic.Bullet.Editor.v.1.01.for.Sony.Vegas, Avid.Xpress.Pro.HD.v5.0 1CD, Sony.Vegas.v5.0d, ola DVD Video 0 01-14-2005 10:53 AM
Jisatsu circle (Suicide Circle) Col's Cavern DVD Video 1 06-07-2004 06:55 PM
Need help with Style conversion from Style object to Style key/value collection. Ken Varn ASP .Net Building Controls 0 04-26-2004 07:06 PM
Circle Hell Talon Perl 2 09-04-2003 07:25 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57