473,772 Members | 3,665 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

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
9 4611
In article
<5a************ *************** *******@l64g200 0hse.googlegrou ps.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
On Oct 21, 10:58*pm, dorayme <doraymeRidT... @optusnet.com.a uwrote:
In article
<5af31f2e-0b3a-40d8-bdba-79ac2bc72...@l6 4g2000hse.googl egroups.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
rf

"shapper" <md*****@gmail. comwrote in message
news:43******** *************** ***********@y71 g2000hsa.google groups.com...
On Oct 22, 3:26 am, dorayme <doraymeRidT... @optusnet.com.a uwrote:
In article
<61cf0e43-94cd-455d-9f17-b0edfca3a...@a1 8g2000pra.googl egroups.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
On Oct 22, 12:34*pm, "rf" <r...@invalid.c omwrote:
"shapper" <mdmo...@gmail. comwrote in message

news:43******** *************** ***********@y71 g2000hsa.google groups.com...
On Oct 22, 3:26 am, dorayme <doraymeRidT... @optusnet.com.a uwrote:
In article
<61cf0e43-94cd-455d-9f17-b0edfca3a...@a1 8g2000pra.googl egroups.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
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
On Oct 23, 1:17*pm, Johannes Koch <k...@w3develop ment.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
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
3260
by: JDJones | last post by:
I'd like to put up two polls on my web site on a single page. I will be using a free remotely hosted poll service. That part is easy. But I want to remove the two individual <a href> links that have to be clicked to call the current results individually and replace them with a single link that will be used to call the results of both pages and display them at the same time, most likely in a table. Can PHP be used to do this? How would...
17
1992
by: Doug Holton | last post by:
George W Bush, as certified by Florida's election commission. Which decorator syntax do you like the most? See http://wiki.wxpython.org/index.cgi/PythonDecoratorsPoll A. @classmethod def foo(): (82) 14% C1. def foo() : (235) 41% E1. def foo(): @classmethod (260) 45% Total Votes: 577
28
2396
by: Paul McGuire | last post by:
Well, after 3 days of open polling, the number of additional votes have dropped off pretty dramatically. Here are the results so far: Total voters: 55 (with 3 votes each) Votes for each choice or group of choices: Any J 81 J2 78 Any C 40 C1 29 Any D 9
71
3184
by: Greg | last post by:
Is it your general opinion that C# is generally designed/intended/ready to replace C++? I know the answer is not black and white but please repond YES or NO (add any comments if you would like) I just thought it might be interesting to get a tally. This is related to a previous thread. So far we have two NOs from "aa" and Bo Persson. -- Greg McPherran www.McPherran.com
1
6024
by: adamjgb | last post by:
Hi. I'm a newbie to Javascript and I have been tasked with creating an online poll to grade and/or rate a particular story that is being put out on my church's website. From what I have read, I know that Javascript is client side only and I can't send the poll results to a database. But I don't need to do that. What I would like to do is have the user complete the survey and have that information sent to the story creator directly in an...
0
2044
by: jinfeng_Wang | last post by:
I have writen the following souce code : m_Socket = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp); m_Socket.Blocking = false; try { m_Socket.Connect(ipEndPoint); }
5
2686
by: pbd22 | last post by:
Hi. I am trying to poll a long-running process via a hidden IFrame. I am noticing that the online errata gives advice for handling a server response: window.parent.handleServerResponse(); The problem I am having with this is that the above function gets called ***after*** the long-running response is completed.
4
17541
by: 7stud | last post by:
Hi, What is the difference between: 1) getting the returncode directly from the subprocess object 2) calling poll() on the subprocess object? Here is an example:
1
1485
by: Sunfire | last post by:
Does anybody know how to create an online poll generator? or be able to put me to a place that can help me out?
0
9620
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9454
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10261
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10038
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8934
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7460
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5482
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4007
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2850
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.