A Conversation for The H2G2 Programmers' Corner
- 1
- 2
Not an arithmetic problem
Pirate Alexander LeGray Started conversation Mar 22, 2008
I am trying to write a web page about symmetry, I am having to relearn CSS, can anybody answer a couple of questions?
My heading size works on my crummy editor, but up on the server doesn't.
Images cannot be floated.
opacity:0.5;filter:alpha(opacity=50);
works on the demo site, but not in my editor or on the server.(not even if I cut and paste)
scrollbar-[component]-color
doesn't work
span {max-width:705;
doesn't work
positioning on image doesn't work inline or in a stylesheet, although I have got a psuedo class in style called img.50 {} and this might interfere with it.
Frames
frames sometimes work and sometimes don't
And I want to be able to send different styles to different browsers,
sort of like var ?? =document.navigator.(something to give resolution)
if(var==??)
{<link rel="style.........}
Can this be done?
Not an arithmetic problem
Peet (the Pedantic Punctuation Policeman, Muse of Lateral Programming Ideas, Eggcups-Spurtle-and-Spoonswinner, BBC Cheese Namer & Zaphodista) Posted Mar 22, 2008
Try specifying a doctype at the head of each page...?
http://www.alistapart.com/articles/doctype/
Not an arithmetic problem
Pirate Alexander LeGray Posted Mar 22, 2008
Already done that, in fact the crummy editor puts the correct one in, I only call it crummy because it writes text when I pause to think.
In the Index is frameset Doctype, everywhere else loose.dtd or transitional.
have a look at the source code;
http://www.arithmetic.890m.com
Not an arithmetic problem
Pirate Alexander LeGray Posted Mar 22, 2008
Not an arithmetic problem
Peet (the Pedantic Punctuation Policeman, Muse of Lateral Programming Ideas, Eggcups-Spurtle-and-Spoonswinner, BBC Cheese Namer & Zaphodista) Posted Mar 22, 2008
Ok... I don't have time to think about this at the moment (I just got up after a 3am stint trying to fix a laptop, and it seems to be broken again... ) but I might be able to help with the "Crummy Editor" situation.
Have you tried "NVU"? ("New-View")
http://nvudev.com/index.php
There's also a "bugfix release" called "KompoZer", but I haven't tried that.
http://www.kompozer.net/
It has some rough edges, but it's as close to Dreamweaver as I've been able to find for free.
Not an arithmetic problem
Pirate Alexander LeGray Posted Mar 22, 2008
Thanks, I wll have a look at those, fixed the img problem, well not really cos I wanted to use it inline. But if I dont include opacity then I can have positioning global, not inline still. Can't help but think maybe its got something to do with my browser, which is latest IE7, but with parts disabled by Kasperski commercial, and I don't know how I got that because I thought I was downloading the home edition.
As a matter of interest only, Kasperski starts before windows, because their name is displayed before you get to welcome on start up.
Not an arithmetic problem
Peet (the Pedantic Punctuation Policeman, Muse of Lateral Programming Ideas, Eggcups-Spurtle-and-Spoonswinner, BBC Cheese Namer & Zaphodista) Posted Mar 22, 2008
Ah... IE7...
It's a step towards W3C compatibility, but not a very great one. They're changing the compatibility model *again* with IE8. I suggest strongly that if you're going to do any CSS you stick to previewing it in Firefox or Opera, and *don't* use any IE-only extensions as the default syntax may be completely different in three months or so.
http://www.getfirefox.com
http://www.opera.com
If you plan to do any serious development, get both and test with both - if something looks different between them, then generally you did it wrong.
Not an arithmetic problem
Peet (the Pedantic Punctuation Policeman, Muse of Lateral Programming Ideas, Eggcups-Spurtle-and-Spoonswinner, BBC Cheese Namer & Zaphodista) Posted Mar 22, 2008
Oh, and an invaluable resource:
http://www.webmonkey.com
Not an arithmetic problem
Pirate Alexander LeGray Posted Mar 24, 2008
CSS is driving me mad, I'm trying to write a web page and when I need some new CSS just add it. But the effort required to do something dead simple. If you include the border attribute in the CSS table tag eg border-width it doesn't work. But if you include border as an ordered list eg border:10px solid #123456 it does.
By the time I've got something working I'm too worn out to think about what I'm going to say in my web page.
Is their any suitably complete free web courses in CSS besides the incomplete W3Schools I'm using?
Not an arithmetic problem
Peet (the Pedantic Punctuation Policeman, Muse of Lateral Programming Ideas, Eggcups-Spurtle-and-Spoonswinner, BBC Cheese Namer & Zaphodista) Posted Mar 24, 2008
The Webmonkey link above gets you to the best site I've found for all sorts of web development - HTML, CSS etc., and it covers all levels from absolute beginner to expert.
Again, I have to point out that if you're using *any* bersion of Internet Explorer to view the pages much CSS markup either will do nothing or do something completely different from the standard.
Have you got hold of Firefox yet? If so, compare this page in IE and FF:
http://meyerweb.com/eric/css/edge/complexspiral/glassy.html
I don't know about the latest IE (I'm a Linux user now) but no previous version could show this page properly.
When you have Firefox running, check out this site for inspiration:
http://www.csszengarden.com/
It's a single web page that has thousands of different "looks", all using different CSS files with identical HTML. There's a book you can buy (I have a copy...) that shows how some of the designs were created and the process you need to use to desaign your HTML in order to use the same techniques. Very instructive.
Not an arithmetic problem
Pirate Alexander LeGray Posted Mar 24, 2008
I liked the garden showing this browser can see abit. Have to get the strength up to get firefox because Kasperski likes to fight programs on install, I have to be there to stop it wiping out the system Ya can't stop it by switching it off, because as soon as a program tries to alter the registry it pops up even though it was quit. And I won't do without it since my pc was helped to a keylogger and fifty other virus one of which was a rootkit, shutting down security but making it look as if it was working ok.
This really cool rootkit also prevented unsuccessfully, re-installing windows and was located in restore as well as a hundred other places.
Microsoft told me to leave it since on its own it posed no threat, MacFee removed it but it came back, and many more can't even see it.
Kasperski killed it dead, but left me in a bit of a panic until the system was restarted.
Not an arithmetic problem
Peet (the Pedantic Punctuation Policeman, Muse of Lateral Programming Ideas, Eggcups-Spurtle-and-Spoonswinner, BBC Cheese Namer & Zaphodista) Posted Mar 24, 2008
Download Firefox, unplug yourself from the Internet, stop the anti-virus, install it and then start the anti-virus again before you plug back in. Simple.
Not an arithmetic problem
Pirate Alexander LeGray Posted Mar 25, 2008
I think its possibly more than one thing, I just spent about 6 hours getting style to work for a table I could have written inline in ten minutes. Now its up on the server it doesn't work again, but it does in my browser unconnected or directed to the file in my computer.
You can only pause Kasperski, and that only brings down the firewall. Kasperski starts before windows, can be run in dos, and although mostly doesn't interfere with installs, sometimes stops the install on a timer waiting for a response from the user, before deleting the offensive file. Like my modem once, my radio player (complete files) twice, and has disabled all updates to IE7 and all security and all add ons.
It keeps telling me that msnEng.exe is sending secret messages. So since I have downloaded 75000 objects this month, I will need to muster the energy before I get anything else.
Also, I won a modest international award eight years ago, and if it don't work in IE7 it won't work in 90% of browsers.
However, serious web designers always have an assortment of browsers, and if the file aint massive I will definitely get it.
Some years ago I passed this modest degree level course MT262 in the OU about C++, I could write very interesting web pages, I mean page if C++ can be embedded in html.
Not an arithmetic problem
Peet (the Pedantic Punctuation Policeman, Muse of Lateral Programming Ideas, Eggcups-Spurtle-and-Spoonswinner, BBC Cheese Namer & Zaphodista) Posted Mar 25, 2008
"...and if it don't work in IE7 it won't work in 90% of browsers."
Yup, but things that work in Firefox will usually work inn IE to some degree, and if you develop primarily for IE the one thing you can be sure of is that it probably won't work properly in the next release.
Not an arithmetic problem
HappyDude Posted Mar 25, 2008
Gust a quick note to let you know that the CSS mailing list is has proved absolutely invaluable to me when I've had problems with CSS.
They have a Wiki at http://css-discuss.incutio.com/
The Archive (for list members only) is at http://lists.css-discuss.org/mailman/private/css-d/ and information on subscribing is at http://www.css-discuss.org/mailman/listinfo/css-d - be warned it is a high volume list so you will probably want to set up a filter so it does not all end up clogging up your inbox.
Not an arithmetic problem
Pirate Alexander LeGray Posted Mar 25, 2008
This is an absolutely a fantastic site,(incutio) I've got loads of email address's and my yahoo one brags unlimited file size, I think, anyway I don't use it much.
Not an arithmetic problem
Pirate Alexander LeGray Posted Mar 26, 2008
Right then, got firefox, how come it's a trillion times faster than IE7,
and don't just say because it's better.
Security again popped up to try to stop the download, but it said IE7 was trying to download something else aswell, something to do with a PID module whatever that is.
The problems with my site, are not only to do with a crummy browser since firefox sees the same thing, apart from one minor improvement.
Last night spaces appeared between some text and adjacent text thats not supposed to be their. I raised a query with the web host about the inconsistencies and got a reply that they can't help with script, but their ain't no script in it.
It is obvious then the free website is really for kiddykins who use frontpage to paste some family photos on, and not somebody who wants their page to be the best possible
Not an arithmetic problem
Peet (the Pedantic Punctuation Policeman, Muse of Lateral Programming Ideas, Eggcups-Spurtle-and-Spoonswinner, BBC Cheese Namer & Zaphodista) Posted Mar 26, 2008
Hokay. How that we're both looking at it in Firefox we should be seeing the same thing...
If the problem is with the examples near the end ("starting with a" etc.) then it's because you've allowed strings of " " to creep into the source code. Sometimes this can happen if you hold down the shift key while using the space bar to make things "wrap" in the code view - multiple spaces don't appear in the HTML, but multiple 's (non-breaking spaces) do.
Not an arithmetic problem
Pirate Alexander LeGray Posted Mar 26, 2008
No, that bits deliberate, and refreshing by uploading same page again cleared the problem for the time being.
You can edit up on the server, and the file was exactly the same as the one replacing it. Therefore it's a server problem.
Now I can see a blue hyperlink in the body, which is different from IE7, and h3 is about the right size.
So now I'm thinking find another web host, but it will mean redoing the background and for me with my artistic skills is a big deal
Not an arithmetic problem
Peet (the Pedantic Punctuation Policeman, Muse of Lateral Programming Ideas, Eggcups-Spurtle-and-Spoonswinner, BBC Cheese Namer & Zaphodista) Posted Mar 26, 2008
Why? Does it belong to the hosts?
If not, right-click on it and "View Background Image"; once it's showing just go to the "File" menu and "Save page as..." will allow you to make a local copy.
If you need a new background, there are worse places to look than http://www.thefreesite.com - they have a graphics section with links to free background images.
Key: Complain about this post
- 1
- 2
Not an arithmetic problem
- 1: Pirate Alexander LeGray (Mar 22, 2008)
- 2: Peet (the Pedantic Punctuation Policeman, Muse of Lateral Programming Ideas, Eggcups-Spurtle-and-Spoonswinner, BBC Cheese Namer & Zaphodista) (Mar 22, 2008)
- 3: Pirate Alexander LeGray (Mar 22, 2008)
- 4: Pirate Alexander LeGray (Mar 22, 2008)
- 5: Peet (the Pedantic Punctuation Policeman, Muse of Lateral Programming Ideas, Eggcups-Spurtle-and-Spoonswinner, BBC Cheese Namer & Zaphodista) (Mar 22, 2008)
- 6: Pirate Alexander LeGray (Mar 22, 2008)
- 7: Peet (the Pedantic Punctuation Policeman, Muse of Lateral Programming Ideas, Eggcups-Spurtle-and-Spoonswinner, BBC Cheese Namer & Zaphodista) (Mar 22, 2008)
- 8: Peet (the Pedantic Punctuation Policeman, Muse of Lateral Programming Ideas, Eggcups-Spurtle-and-Spoonswinner, BBC Cheese Namer & Zaphodista) (Mar 22, 2008)
- 9: Pirate Alexander LeGray (Mar 24, 2008)
- 10: Peet (the Pedantic Punctuation Policeman, Muse of Lateral Programming Ideas, Eggcups-Spurtle-and-Spoonswinner, BBC Cheese Namer & Zaphodista) (Mar 24, 2008)
- 11: Pirate Alexander LeGray (Mar 24, 2008)
- 12: Peet (the Pedantic Punctuation Policeman, Muse of Lateral Programming Ideas, Eggcups-Spurtle-and-Spoonswinner, BBC Cheese Namer & Zaphodista) (Mar 24, 2008)
- 13: Pirate Alexander LeGray (Mar 25, 2008)
- 14: Peet (the Pedantic Punctuation Policeman, Muse of Lateral Programming Ideas, Eggcups-Spurtle-and-Spoonswinner, BBC Cheese Namer & Zaphodista) (Mar 25, 2008)
- 15: HappyDude (Mar 25, 2008)
- 16: Pirate Alexander LeGray (Mar 25, 2008)
- 17: Pirate Alexander LeGray (Mar 26, 2008)
- 18: Peet (the Pedantic Punctuation Policeman, Muse of Lateral Programming Ideas, Eggcups-Spurtle-and-Spoonswinner, BBC Cheese Namer & Zaphodista) (Mar 26, 2008)
- 19: Pirate Alexander LeGray (Mar 26, 2008)
- 20: Peet (the Pedantic Punctuation Policeman, Muse of Lateral Programming Ideas, Eggcups-Spurtle-and-Spoonswinner, BBC Cheese Namer & Zaphodista) (Mar 26, 2008)
More Conversations for The H2G2 Programmers' Corner
Write an Entry
"The Hitchhiker's Guide to the Galaxy is a wholly remarkable book. It has been compiled and recompiled many times and under many different editorships. It contains contributions from countless numbers of travellers and researchers."