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

CSS Poll. Help on code ... Example online.

P: n/a
Hello,

I am displaying a poll using CSS and lists:
http://www.27lamps.com/Beta/Poll/Poll.html

At the moment I have two problems:

1. I am not able to set a padding between each Bar and the border
which I am using background-image to define it.

2. The percentage labels is not centered in vertical

Could someone, please, help me out?

Any improvements are welcome.

Thanks,
Miguel
Oct 21 '08 #1
Share this Question
Share on Google+
9 Replies


P: n/a
In article
<5a**********************************@l64g2000hse. googlegroups.com>,
shapper <md*****@gmail.comwrote:
Hello,

I am displaying a poll using CSS and lists:
http://www.27lamps.com/Beta/Poll/Poll.html
Wow, Miguel, you have supplied a URL! This is a rare event in your case!
Never mind that it does not validate nor that the CSS has faults that
you can see by checking with validators.
At the moment I have two problems:

1. I am not able to set a padding between each Bar and the border
which I am using background-image to define it.

2. The percentage labels is not centered in vertical

Could someone, please, help me out?

Any improvements are welcome.
It is simply ridiculous not to use an HTML table for this. Just plain
absurd. It is so silly that it even beats every single one of John
Cleese's silly walks and all the silly walks even within the Ministry of
Silly Walks.

http://www.youtube.com/watch?v=IqhlQfXUk7w

--
dorayme
Oct 21 '08 #2

P: n/a
On Oct 21, 10:58*pm, dorayme <doraymeRidT...@optusnet.com.auwrote:
In article
<5af31f2e-0b3a-40d8-bdba-79ac2bc72...@l64g2000hse.googlegroups.com>,

*shapper <mdmo...@gmail.comwrote:
Hello,
I am displaying a poll using CSS and lists:
http://www.27lamps.com/Beta/Poll/Poll.html

Wow, Miguel, you have supplied a URL! This is a rare event in your case!
Never mind that it does not validate nor that the CSS has faults that
you can see by checking with validators.
At the moment I have two problems:
1. I am not able to set a padding between each Bar and the border
which I am using background-image to define it.
2. The percentage labels is not centered in vertical
Could someone, please, help me out?
Any improvements are welcome.

It is simply ridiculous not to use an HTML table for this. Just plain
absurd. It is so silly that it even beats every single one of John
Cleese's silly walks and all the silly walks even within the Ministry of
Silly Walks.

http://www.youtube.com/watch?v=IqhlQfXUk7w

--
dorayme
It seems I can't even post once without hearing something ... getting
tired. Really ...

I am following this article:
http://www.alistapart.com/articles/a...avisualization

Which seems a good source when it comes to CSS ...

Anyway, if you don't want to help it is ok ...

I prefer to use lists instead of tables ... it is just a personal
option.

Thank You Anyway,
Miguel
Oct 21 '08 #3

P: n/a
rf

"shapper" <md*****@gmail.comwrote in message
news:43**********************************@y71g2000 hsa.googlegroups.com...
On Oct 22, 3:26 am, dorayme <doraymeRidT...@optusnet.com.auwrote:
In article
<61cf0e43-94cd-455d-9f17-b0edfca3a...@a18g2000pra.googlegroups.com>,
[stuff]
>dorayme
>I see. I tried to find an example of creating a poll using tables but
I couldn't find any. Do you know such example?
<sigh>

No. dorayme, don't. You have too much time on your hands already.

>Should I post a thread on alt.html asking for the HTML markup of a
poll?
No. You should start with a <table></tableelement, fill it in as you best
can and then ask over at alt.html why it does not work.

Anybody will help you fix your code. Nobody will give you code.
Oct 22 '08 #4

P: n/a
On Oct 22, 12:34*pm, "rf" <r...@invalid.comwrote:
"shapper" <mdmo...@gmail.comwrote in message

news:43**********************************@y71g2000 hsa.googlegroups.com...
On Oct 22, 3:26 am, dorayme <doraymeRidT...@optusnet.com.auwrote:
In article
<61cf0e43-94cd-455d-9f17-b0edfca3a...@a18g2000pra.googlegroups.com>,

[stuff]
dorayme
I see. I tried to find an example of creating a poll using tables but
I couldn't find any. Do you know such example?

<sigh>

No. dorayme, don't. You have too much time on your hands already.
Should I post a thread on alt.html asking for the HTML markup of a
poll?

No. You should start with a <table></tableelement, fill it in as you best
can and then ask over at alt.html why it does not work.

Anybody will help you fix your code. Nobody will give you code.
Please, please don't tell ... ui ui ... Jesus, I am dealing with
children.

RF, I was not asking for code!!!!! I was asking if someone knew a good
article on using tables similar to the one in AListApart since I
couldn't find any.

Back to what really matters. Yes I have my code! Here it is:
http://www.27lamps.com/Beta/Poll/Table.html

But it is still not similar to my objective which is the poll in
AListApart ...

Thanks,
Miguel
Oct 22 '08 #5

P: n/a
shapper schrieb:
If I remember well I had a few problems with HTML 4.01 and Google
Adsense, because of iFrame, which I need to have on this web site.
So I went to Xhtml strict ...
Do you think, XHTML 1.0 Strict contains the iframe element, whereas HTML
4.01 Strict does not?

--
Johannes Koch
In te domine speravi; non confundar in aeternum.
(Te Deum, 4th cent.)
Oct 23 '08 #6

P: n/a
On Oct 23, 1:17*pm, Johannes Koch <k...@w3development.dewrote:
shapper schrieb:
If I remember well I had a few problems with HTML 4.01 and Google
Adsense, because of iFrame, which I need to have on this web site.
So I went to Xhtml strict ...

Do you think, XHTML 1.0 Strict contains the iframe element, whereas HTML
4.01 Strict does not?

--
Johannes Koch
In te domine speravi; non confundar in aeternum.
* * * * * * * * * * * * * * *(Te Deum, 4th cent.)
I remember reading at the time something related to AdSense ...
I know I had a problem with HTML 4.01 strict that I couldn't solve but
I don't remember exactly what ...

I have been Googling for articles on this to try to remember what
issued led me to XHTML but until now ...

In a few days I will finish this and I am planning to create a version
with Html Strict and check if I can make the changes so it validates.
.... if Html 4.01 strict is really the way to go.
Oct 23 '08 #7

P: n/a
shapper wrote:
I am not Spanish! Guess again!
You are Portugese of course. I can normally find your nearest city, but
not in this case, at least not yet.

--
Steve Swift
http://www.swiftys.org.uk/swifty.html
http://www.ringers.org.uk
Oct 24 '08 #8

P: n/a
You are Portugese of course. I can normally find your nearest city, but
not in this case, at least not yet.
Uh scary ... :-) ... I am from Lisbon

Oct 24 '08 #9

P: n/a
shapper wrote:
>You are Portugese of course. I can normally find your nearest city
Uh scary ... :-) ... I am from Lisbon
The trick is quite simple. I trace the route to the IP address that made
the post (which would normally have been yours unless you are using some
form of anonomising proxy) and if I'm lucky, the intervening IP names
would resolve to place names. If the last hop before your IP address
(typically, your ISP) had contained ".lisbon." then I would have known.
I didn't see any "local" information in your case, so you needn't worry.

If you "tracert 81.146.18.153" you'll see your traffic routed to the UK,
then to Reading. After that you don't learn anything, but Reading is
about 30Km from me.

--
Steve Swift
http://www.swiftys.org.uk/swifty.html
http://www.ringers.org.uk
Oct 27 '08 #10

This discussion thread is closed

Replies have been disabled for this discussion.