Problem with margins

8 views
Skip to first unread message

Luigi Donatello Asero

unread,
Sep 9, 2006, 5:59:49 PM9/9/06
to
Hello,
I do not want the <div> with pictures to touch the <div> with contents about
Sweden on the right on the page in the signature.
I tried to set some margins on the external cascading style sheet but it did
not work for some reason.
I do not want it to use "clear" either.
Any suggestion?

--
Luigi Donatello Asero
https://www.scaiecat-spa-gigi.com/it/svezia.html
昨天下午天气真好吗 ?

Beauregard T. Shagnasty

unread,
Sep 9, 2006, 6:27:01 PM9/9/06
to
Luigi Donatello Asero wrote:

> I do not want the <div> with pictures to touch the <div> with contents
> about Sweden on the right on the page in the signature. I tried to
> set some margins on the external cascading style sheet but it did not
> work for some reason. I do not want it to use "clear" either.
> Any suggestion?

Correct your errors.

#foto-svezia-meridionale.subsubsection {float:left;
width: 25%;
min-width: 200px;
min.height: 200px;
border: thin silver solid;
margin-top:0,5em;
margin-left:0,5em;
margin-right:2,5em;
margin-bottom:0,5em;

See all those commas instead of decimal points (or whatever you call
them in Sweden)? Change them to periods/dots.

margin-right:2.5em; gives you the margin you desire.

BTW, I wore out my mouse wheel scrolling to find what you where talking
about. Had you said "the margin at 5.B. In Svezia", it would have been
even simpler to find your error.

--
-bts
-Motorcycles defy gravity; cars just suck.

Beauregard T. Shagnasty

unread,
Sep 9, 2006, 6:33:54 PM9/9/06
to
Beauregard T. Shagnasty replied to hisself:

> Correct your errors.

Oh, and you may as well try to find out what causes the CSS validator to
die.

<http://jigsaw.w3.org/css-validator/validator?profile=css2&warning=2&uri=https%3A%2F%2Fwww.scaiecat-spa-gigi.com%2Fit%2Fsvezia.html>

dorayme

unread,
Sep 9, 2006, 6:40:03 PM9/9/06
to
In article <pPGMg.15896$E02....@newsb.telia.net>,

"Luigi Donatello Asero" <jaggilla...@telia.com> wrote:

> Hello,
> I do not want the <div> with pictures to touch the <div> with contents about
> Sweden on the right on the page in the signature.
> I tried to set some margins on the external cascading style sheet but it did
> not work for some reason.
> I do not want it to use "clear" either.
> Any suggestion?

Try

#posizione-geografica.subsubsubsection
{margin-left:60%;margin-right:.5em}


as a tactical solution. Then apply it to all the divs in that
col.

Seriously Luigi, this is the most complex, most convoluted css to
control a page that I have ever seen. I could not conceive of
ever remotely making anything like it because I would never be
able to maintain it. Its design appears to me to be almost wholly
tactical and not strategic. It is a recipe for a nightmare of
maintenence.

--
dorayme

Luigi Donatello Asero

unread,
Sep 9, 2006, 6:51:00 PM9/9/06
to

"Beauregard T. Shagnasty" <a.non...@example.invalid> skrev i meddelandet
news:VcHMg.15403$QM6....@bgtnsc05-news.ops.worldnet.att.net...

> Luigi Donatello Asero wrote:
>
> > I do not want the <div> with pictures to touch the <div> with contents
> > about Sweden on the right on the page in the signature. I tried to
> > set some margins on the external cascading style sheet but it did not
> > work for some reason. I do not want it to use "clear" either.
> > Any suggestion?
>
> Correct your errors.
>
> #foto-svezia-meridionale.subsubsection {float:left;
> width: 25%;
> min-width: 200px;
> min.height: 200px;
> border: thin silver solid;
> margin-top:0,5em;
> margin-left:0,5em;
> margin-right:2,5em;
> margin-bottom:0,5em;
>
> See all those commas instead of decimal points (or whatever you call
> them in Sweden)? Change them to periods/dots.

Thank you. Now it works.

> margin-right:2.5em; gives you the margin you desire.
>
> BTW, I wore out my mouse wheel scrolling to find what you where talking
> about. Had you said "the margin at 5.B. In Svezia", it would have been
> even simpler to find your error.

You are right.

Beauregard T. Shagnasty

unread,
Sep 9, 2006, 6:55:59 PM9/9/06
to
dorayme wrote:

> Seriously Luigi, this is the most complex, most convoluted css to
> control a page that I have ever seen.

I have seen a few that were worse, but not by much... <lol>

I actually surprised myself by noticing the commas instead of dots.

Liugi's next mission, should he choose to accept it, is to find out what
is causing the horizontal scrollbar to appear, no matter what the
browser width is. (I do not intend to tackle that one.)

dorayme

unread,
Sep 9, 2006, 6:58:06 PM9/9/06
to
In article
<VcHMg.15403$QM6....@bgtnsc05-news.ops.worldnet.att.net>,

"Beauregard T. Shagnasty" <a.non...@example.invalid> wrote:

> BTW, I wore out my mouse wheel scrolling to find what you where talking
> about. Had you said "the margin at 5.B. In Svezia", it would have been
> even simpler to find your error.

I transferred the CSS to BBEdit from FF to use the better Search
functions there, in conjunction with watching the "current
element" names in FF. (Not that I solved his problem in the end,
though I found "a" solution to one of the paras in that col that
might have provided OP with a clue to go on?)

It was very hard to see things in the CSS in FF (FF has this
annoying limit on the width of the "Edit CSS" col... It would be
nice to be able to widen it more. That at least is the situation
on the Mac version.

--
dorayme

Beauregard T. Shagnasty

unread,
Sep 9, 2006, 7:06:51 PM9/9/06
to
dorayme wrote:

> It was very hard to see things in the CSS in FF (FF has this annoying
> limit on the width of the "Edit CSS" col... It would be nice to be
> able to widen it more. That at least is the situation on the Mac
> version.

Are you using Chris Pederick's Web Developer Toolbar? The Edit CSS panel
is stretchable. Drag the border wider, the one next to the displayed
page.

But for Luigi's page, you probably need a wide-screen monitor. <g>

Luigi Donatello Asero

unread,
Sep 9, 2006, 7:27:42 PM9/9/06
to

"Beauregard T. Shagnasty" <a.non...@example.invalid> skrev i meddelandet
news:fOHMg.92102$5i3....@bgtnsc04-news.ops.worldnet.att.net...

> dorayme wrote:
>
> > It was very hard to see things in the CSS in FF (FF has this annoying
> > limit on the width of the "Edit CSS" col... It would be nice to be
> > able to widen it more. That at least is the situation on the Mac
> > version.
>
> Are you using Chris Pederick's Web Developer Toolbar? The Edit CSS panel
> is stretchable. Drag the border wider, the one next to the displayed
> page.
>
> But for Luigi's page, you probably need a wide-screen monitor. <g>

For
https://www.scaiecat-spa-gigi.com/it/svezia.html ?
Why?

--
Luigi Donatello Asero
https://www.scaiecat-spa-gigi.com/it/europa/svezia/vaestra-goetaland/goeteborg.php
昨天下午天气真好吗 ?


dorayme

unread,
Sep 9, 2006, 7:34:30 PM9/9/06
to
In article
<fOHMg.92102$5i3....@bgtnsc04-news.ops.worldnet.att.net>,

"Beauregard T. Shagnasty" <a.non...@example.invalid> wrote:

> dorayme wrote:
>
> > It was very hard to see things in the CSS in FF (FF has this annoying
> > limit on the width of the "Edit CSS" col... It would be nice to be
> > able to widen it more. That at least is the situation on the Mac
> > version.
>
> Are you using Chris Pederick's Web Developer Toolbar? The Edit CSS panel
> is stretchable. Drag the border wider, the one next to the displayed
> page.
>

Well, yes... that is the extension I am complaining about in
respect to width. It is draggable but it reaches a miserable max
width on my Mac


> But for Luigi's page, you probably need a wide-screen monitor. <g>

Well, exactly! It was so frustrating.

--
dorayme

Luigi Donatello Asero

unread,
Sep 9, 2006, 7:46:51 PM9/9/06
to

"dorayme" <dorayme...@optusnet.com.au> skrev i meddelandet
news:doraymeRidThis-F8F...@news-vip.optusnet.com.au...

Are you sure that we are talkning about the same thing???
Ps.: there is already something which I do not understand in Chinese and
that is frustrating!


--
Luigi Donatello Asero
https://www.scaiecat-spa-gigi.com/it/europa/svezia/vaestra-goetaland/goeteborg.php
昨天下午天气真好吗 ?


Beauregard T. Shagnasty

unread,
Sep 9, 2006, 7:54:19 PM9/9/06
to
Luigi Donatello Asero wrote:

> "Beauregard T. Shagnasty" <a.non...@example.invalid> wrote:

>> dorayme wrote:
>>
>>> It was very hard to see things in the CSS in FF (FF has this
>>> annoying limit on the width of the "Edit CSS" col... It would be
>>> nice to be able to widen it more. That at least is the situation on
>>> the Mac version.
>>
>> Are you using Chris Pederick's Web Developer Toolbar? The Edit CSS
>> panel is stretchable. Drag the border wider, the one next to the
>> displayed page.
>>
>> But for Luigi's page, you probably need a wide-screen monitor. <g>
>
> For
> https://www.scaiecat-spa-gigi.com/it/svezia.html ?
> Why?

http://k75s.home.att.net/show/svezia.jpg

Notice the scrollbar in the left pane. That is because some of your
selectors were composed with no line feeds, like:
#informazioni-generali.subsubsection or
#arredamento-articoli-da-regalo.subsubsection
..which is 270 characters wide.

You are saving only a few bytes by not placing each attribute on a
separate line, but you make the whole sheet a troubleshooting nightmare.

[dorayme:]


> It is draggable but it reaches a miserable max width on my Mac

Yes, same in any version... most of the time it's not necessary to go
wider that its maximum. Except for Luigi's, of course.

dorayme

unread,
Sep 9, 2006, 7:57:10 PM9/9/06
to
In article <LnIMg.15899$E02....@newsb.telia.net>,

"Luigi Donatello Asero" <jaggilla...@telia.com> wrote:

> Are you sure that we are talkning about the same thing???
> Ps.: there is already something which I do not understand in Chinese and
> that is frustrating!

Luigi... no one is ever sure when talking to you that everyone is
talking about the same thing. I could almost be an earthling on
this basis.

--
dorayme

Luigi Donatello Asero

unread,
Sep 9, 2006, 8:03:57 PM9/9/06
to

"Beauregard T. Shagnasty" <a.non...@example.invalid> skrev i meddelandet
news:LuIMg.15672$QM6....@bgtnsc05-news.ops.worldnet.att.net...

> Luigi Donatello Asero wrote:
>
> > "Beauregard T. Shagnasty" <a.non...@example.invalid> wrote:
> >> dorayme wrote:
> >>
> >>> It was very hard to see things in the CSS in FF (FF has this
> >>> annoying limit on the width of the "Edit CSS" col... It would be
> >>> nice to be able to widen it more. That at least is the situation on
> >>> the Mac version.
> >>
> >> Are you using Chris Pederick's Web Developer Toolbar? The Edit CSS
> >> panel is stretchable. Drag the border wider, the one next to the
> >> displayed page.
> >>
> >> But for Luigi's page, you probably need a wide-screen monitor. <g>
> >
> > For
> > https://www.scaiecat-spa-gigi.com/it/svezia.html ?
> > Why?
>
> http://k75s.home.att.net/show/svezia.jpg
>
> Notice the scrollbar in the left pane. That is because some of your
> selectors were composed with no line feeds, like:
> #informazioni-generali.subsubsection or
> #arredamento-articoli-da-regalo.subsubsection
> ..which is 270 characters wide.


Sorry, I am not sure I understand what you mean.

Beauregard T. Shagnasty

unread,
Sep 9, 2006, 8:11:58 PM9/9/06
to
Luigi Donatello Asero wrote:

> "Beauregard T. Shagnasty" <a.non...@example.invalid> wrote:
>>
>>>> But for Luigi's page, you probably need a wide-screen monitor. <g>
>>>
>>> For
>>> https://www.scaiecat-spa-gigi.com/it/svezia.html ?
>>> Why?
>>
>> http://k75s.home.att.net/show/svezia.jpg
>>
>> Notice the scrollbar in the left pane. That is because some of your
>> selectors were composed with no line feeds, like:
>> #informazioni-generali.subsubsection or
>> #arredamento-articoli-da-regalo.subsubsection
>> ..which is 270 characters wide.
>
> Sorry, I am not sure I understand what you mean.

Myohmy. Look at your style sheet with word wrap turned OFF in whatever
you use to edit it. Look at the line for:
#arredamento-articoli-da-regalo.subsubsection

Luigi Donatello Asero

unread,
Sep 9, 2006, 9:46:55 PM9/9/06
to

"dorayme" <dorayme...@optusnet.com.au> skrev i meddelandet
news:doraymeRidThis-070...@news-vip.optusnet.com.au...

First of all, it is night here, quite the contrary in Australia, I guess...
Secondly while writing on the web I am also learning Chinese...
(there are some reasons for that but I want to cut a long story short)
Thirdly, I could finally look at the screen picture which he had sent the
link to and i saw that it displayed both
the CSS style sheet and the main page, that is
https://www-scaiecat-spa-gigi.com/it/svezia.html
So, when he is saying that the page is too wide, which page are we talking
about?
The page
https://www-scaiecat-spa-gigi.com/it/svezia.html or the external style
sheet this page makes use of ?
Or perhaps both?
Why does breaking the line in the style sheet prevent the page
https://www-scaiecat-spa-gigi.com/it/svezia.html
from having scrollbars in the menu?

Beauregard T. Shagnasty

unread,
Sep 9, 2006, 10:11:39 PM9/9/06
to
Luigi Donatello Asero wrote:

> Thirdly, I could finally look at the screen picture which he had sent
> the link to and i saw that it displayed both the CSS style sheet and
> the main page, that is https://www-scaiecat-spa-gigi.com/it/svezia.html
> So, when he is saying that the page is too wide, which page are we
> talking about?

> The page https://www-scaiecat-spa-gigi.com/it/svezia.html or the
> external style sheet this page makes use of ?

Notice your page svezia.html has a horizontal scrollbar. This is caused
by some mistake in your style sheet. Not the fact that it itself has
long lines, but because some margin is set too wide.

At the moment, your server is down.

"Server not found
Firefox can't find the server at www-scaiecat-spa-gigi.com."

> Or perhaps both?

Well, that as well.

> Why does breaking the line in the style sheet prevent the page
> https://www-scaiecat-spa-gigi.com/it/svezia.html
> from having scrollbars in the menu?

The long lines in your style sheet cause the *CSS* editing window to
have a scrollbar, as your lines are longer than the width the pane can
be widened to. Go ahead, install the Web Developer Toolbar (very worthy)
in Firefox or Mozilla or SeaMonkey and see for yourself.
http://chrispederick.com/work/webdeveloper/

While viewing your page, press Ctrl+Shift+E and see for yourself.

Luigi Donatello Asero

unread,
Sep 9, 2006, 10:19:40 PM9/9/06
to

"Beauregard T. Shagnasty" <a.non...@example.invalid> skrev i meddelandet
news:vvKMg.16059$QM6....@bgtnsc05-news.ops.worldnet.att.net...

> Luigi Donatello Asero wrote:
>
> > Thirdly, I could finally look at the screen picture which he had sent
> > the link to and i saw that it displayed both the CSS style sheet and
> > the main page, that is https://www-scaiecat-spa-gigi.com/it/svezia.html
> > So, when he is saying that the page is too wide, which page are we
> > talking about?
>
> > The page https://www-scaiecat-spa-gigi.com/it/svezia.html or the
> > external style sheet this page makes use of ?
>
> Notice your page svezia.html has a horizontal scrollbar.

Yes, it does.

This is caused
> by some mistake in your style sheet. Not the fact that it itself has
> long lines, but because some margin is set too wide.
>
> At the moment, your server is down.

Well, actually, I could access the website myself.
So, why do you think that the server was down?
Did you happen to e-mail me?


> "Server not found
> Firefox can't find the server at www-scaiecat-spa-gigi.com."

I can enter the website.
Which ip-number did you use?

dorayme

unread,
Sep 9, 2006, 10:25:19 PM9/9/06
to
In article <j8KMg.15984$E02....@newsb.telia.net>,

"Luigi Donatello Asero" <jaggilla...@telia.com> wrote:

> > Luigi... no one is ever sure when talking to you that everyone is
> > talking about the same thing. I could almost be an earthling on
> > this basis.
>
> First of all, it is night here, quite the contrary in Australia, I guess...

See what I mean? Of course you don't! I say it is always hard to
know if the focus of any discussion with you is constant. You
then tell me it is night time where you are, You are an
extraordinary person Luigi. It is a constantly fascinating
experience for a martian like me to come across such an unusual
species of earthling like you.


> Secondly while writing on the web I am also learning Chinese...
> (there are some reasons for that but I want to cut a long story short)

And again, you exhibit a quixotic and highly interesting display
of your focussing algorithm. I have studied the code of Eliza but
you seem to have a more sophisticated sub routine here that the
traditional Eliza simply did not have. Interesting to the point
of fascination.


> Thirdly, I could finally look at the screen picture which he had sent the
> link to and i saw that it displayed both
> the CSS style sheet and the main page, that is
> https://www-scaiecat-spa-gigi.com/it/svezia.html
> So, when he is saying that the page is too wide, which page are we talking
> about?
> The page
> https://www-scaiecat-spa-gigi.com/it/svezia.html or the external style
> sheet this page makes use of ?
> Or perhaps both?
> Why does breaking the line in the style sheet prevent the page
> https://www-scaiecat-spa-gigi.com/it/svezia.html
> from having scrollbars in the menu?

I will let B answer about how to cope with returns in your CSS.
But the pic he provided was a view of the Firefox browser with an
web developer extension facility whereby the CSS of any web page
is displayed and can be altered for experimentation with the
webpage changes being seen "live" immediately the changes are
made in the CSS. Sort of magical in the sense that it is closest
to the idea of making a wish and having it fulfilled without
having to do anything else like save the changes and all that
boring old stuff.

In addition to what B says about your method of typing and layout
of the css, I do know one thing for sure. Or perhaps I should
say, my instinct is very strong: You are over-reaching Luigi in
the extraordinary complexity of your CSS.

I am now going to give you a really good argument as to why you
should change it utterly and completely. This argument would
normally appeal to the English one man business that is inside of
your soul, I have no idea if it appeals to the Italian in Sweden
one man business part of you. The argument is this:

Businesses have resale value. Ask yourself this question: who
will buy your business if they see your html and css? They will
never be able to work it all out or maintain it.

--
dorayme

Luigi Donatello Asero

unread,
Sep 9, 2006, 10:28:35 PM9/9/06
to

"Luigi Donatello Asero" <jaggilla...@telia.com> skrev i meddelandet
news:0DKMg.15986$E02....@newsb.telia.net...


So, did you mean that I should write the long lines, like that, instead?
#arredamento-articoli-da-regalo.subsubsection a
{ background-color: #cccccc;
background-image:none;
color:#000000;
display: block;
text-align:center;}

Luigi Donatello Asero

unread,
Sep 9, 2006, 10:31:19 PM9/9/06
to

"dorayme" <dorayme...@optusnet.com.au> skrev i meddelandet
news:doraymeRidThis-DF4...@news-vip.optusnet.com.au...


But is not my intention to sell the website.

Beauregard T. Shagnasty

unread,
Sep 9, 2006, 10:57:55 PM9/9/06
to
Luigi Donatello Asero wrote:

> "Luigi Donatello Asero" <jaggilla...@telia.com> skrev i meddelandet
> news:0DKMg.15986$E02....@newsb.telia.net...
>>

>> "Beauregard T. Shagnasty" wrote:
>>> Notice your page svezia.html has a horizontal scrollbar.
>>
>> Yes, it does.
>>
>>> This is caused by some mistake in your style sheet. Not the fact
>>> that it itself has long lines, but because some margin is set too
>>> wide.
>>>
>>> At the moment, your server is down.
>>
>> Well, actually, I could access the website myself. So, why do you
>> think that the server was down? Did you happen to e-mail me?
>>
>>> "Server not found Firefox can't find the server at
>>> www-scaiecat-spa-gigi.com."
>>
>> I can enter the website.

I still can't.

>> Which ip-number did you use?

What difference does that make? Probably 24.169.153.44

> So, did you mean that I should write the long lines, like that, instead?
> #arredamento-articoli-da-regalo.subsubsection a
> { background-color: #cccccc;
> background-image:none;
> color:#000000;
> display: block;
> text-align:center;}

Yes, only more carefully formatted.

#arredamento-articoli-da-regalo.subsubsection a {
background-color: #cccccc;
background-image:none; <--- defaults can be eliminated


color:#000000;
display: block;
text-align:center;
}

Notice the braces are on the first and last line (not mixed with the
attributes), and each one is indented the same amount. I prefer three
spaces, or one tab. (You see, I am a retired programmer.)

You also use very long names for your classes and ids. Surely the words
can be condensed.

dorayme

unread,
Sep 9, 2006, 11:05:15 PM9/9/06
to
In article <XNKMg.15988$E02....@newsb.telia.net>,

"Luigi Donatello Asero" <jaggilla...@telia.com> wrote:

> But is not my intention to sell the website.

You mean you would sell the business but keep the website?

--
dorayme

dorayme

unread,
Sep 9, 2006, 11:06:12 PM9/9/06
to
In article <nLKMg.15987$E02....@newsb.telia.net>,

"Luigi Donatello Asero" <jaggilla...@telia.com> wrote:

> So, did you mean that I should write the long lines, like that, instead?
> #arredamento-articoli-da-regalo.subsubsection a
> { background-color: #cccccc;
> background-image:none;
> color:#000000;
> display: block;
> text-align:center;}

That is the sort of thing I think...

--
dorayme

dorayme

unread,
Sep 9, 2006, 11:10:43 PM9/9/06
to
In article
<TaLMg.16199$QM6....@bgtnsc05-news.ops.worldnet.att.net>,

"Beauregard T. Shagnasty" <a.non...@example.invalid> wrote:

> #arredamento-articoli-da-regalo.subsubsection a {
> background-color: #cccccc;
> background-image:none; <--- defaults can be eliminated
> color:#000000;
> display: block;
> text-align:center;
> }

and

background-color: #cccccc; <-- can be condensed to color:#ccc;
color:#000000; <-- can be condensed to color:#000;

--
dorayme

dorayme

unread,
Sep 9, 2006, 11:15:28 PM9/9/06
to
In article
<doraymeRidThis-3A0...@news-vip.optusnet.com.au>,
dorayme <dorayme...@optusnet.com.au> wrote:

Sorry, I mean

"background-color: #cccccc;" can be condensed to
"background-color:#ccc;"

and while in this minimalist mood, you may be able to just use
the short form "background"...

--
dorayme

Luigi Donatello Asero

unread,
Sep 9, 2006, 11:29:30 PM9/9/06
to

"dorayme" <dorayme...@optusnet.com.au> skrev i meddelandet
news:doraymeRidThis-ADF...@news-vip.optusnet.com.au...

Hello,
I only have a one-man business......
who should be interested?

How does the style-sheet look now?
I get a parse error.


p{
margin-left:auto;
margin-right:auto;
margin-bottom:2%;
margin-top:2%;
padding:1%;
text-indent:4%;
}

body{
width:100%;
margin-left:2%;
margin-right:5%;
margin-top:auto;
margin-bottom:auto;
}


span.aggiornamento
{
border:1px solid black;
background: green;
padding:0.5%;
margin:1em;
color:#ffffff;
width:auto;
text-align: center;
border-spacing: 1em;
}


TABLE{
border: 1px solid black;
width:auto;
background:#ffffff;
color:#000000;
border-spacing: 1px;
}


.sovrum-med-dubbelsang-2 {
color:#000000; border: 1px solid black;
background: #ffffff;
margin-left:auto; clear:right; width:auto;}
.sovrum-med-dubbelsang-1 {color:#000000; border: 1px solid black;
background: #ffffff;
width:100%;
}
.genomgaangsrum {
color:#000000; border: 1px solid black;
background: #99ff66;
}
.garderob {
color:#000000; border: 1px solid black;
background: #ffffff;
}
.bdarum-1 {
color:#000000; border: 1px solid black;
background: #ffffff;
}
.badrum-2 {
color:#000000; border: 1px solid black;
background: #ffffff;
}


.four a {
color: #ffffff; background-color:#cc6600;
}


th, td {
color: black;
background:#ffffff;
text-align:center;
width:auto;
border: 1px solid black;
}

h1, h2, h3, h4, h5 {
text-align:center;
}


#five a{
color:white;
background: #cc6600;
}


body {
font-family: sans-serif;
background: #ffffff;
color: black;
font-size: 100%;
margin: 1%;
}
#head.subsection{
border:0px solid white;
margin-top:6%; margin-bottom:2%;
font-size:smaller;
}

#innehaall{
margin-top: 5%;
margin-left:5%;
border:1px solid white;}
DIV.normal{margin-top: 5%;
margin-left:5%;
}

#menu a {
margin:auto;
color:#0000cc;
background:#ffcc00;
text-align:center;
border-left:1px solid #F66460 ;
border-top:1px solid #F66460 ;
border-right:1px solid #000000 ;
border-bottom:1px solid #000000 ;
width: 100%;
display: block;
}

#menu a:active {
color: #0000cc; background-color:#ffffff;
}
#menu a:hover {
color: #666666;
background-color:#ffffff;
border-left: 1px solid #000000;
border-top: 1px solid #000000;
border-right: 1px solid #F66460;
border-bottom: 1px solid #F66460;
}


#svezia.subsubsection{
margin-top:auto;
margin-bottom:auto;
margin-left:5%;
margin-right:auto;
width:auto;
}

#annunci-immagini.subsection
{
margin-top:2%;
margin-bottom:50%;
width: 30%;
float: right;
}

#foto-svezia-meridionale.subsubsection
{
float:left;
width: 25%;
min-width: 200px;

min-height: 200px;
border: thin silver solid;
margin-top:0.5em;
margin-left:0.5em;
margin-right:1em;
margin-bottom:0.5em;
}
#foto-svezia-meridionale.subsubsection p
{
text-align: center;
font-style: italic;
font-size: smaller;
text-indent: 0;
}
#note-pagina.subsection
{
margin-top:8%;
margin-bottom:2%;
margin-left:auto;
margin-right:auto;
width:100%;
}

#flora-fauna-svezia.subsubsubsection{
margin-top:8%;
margin-bottom:2%;
width:auto;
}

#lingue-in-svezia.subsubsubsection{
margin-top:8%;
margin-bottom:2%;
width:auto;
}

#diversi-strumenti.subsection
{
margin-top:8%;
margin-bottom:2%;
width:auto;
}
#introduzione.subsection{
margin-top:2%;
margin-bottom:2%;
width:auto;
}
#costituzione-svedese.subsubsubsection{
margin-top:8%;
margin-bottom:2%;
width:auto;
}
#coronasvedese-euro.subsubsubsection{
margin-top:8%;
margin-bottom:2%;
width:auto;
}
#democrazia-rappresentanza-politica-emancipazione.subsubsubsection{
margin-top:8%;
margin-bottom:2%;
width:auto;
}
#sport-in-svezia.subsubsubsection{
margin-top:8%;
margin-bottom:2%;
width:auto;
}
#feste-in-svezia.subsubsubsection{
margin-top:8%;
margin-bottom:2%;
width:auto;
}
#premio-nobel-a-stoccolma.subsubsubsection{
margin-top:8%;
margin-bottom:2%;
width:auto;
}
#settore-energetico-svezia.subsubsubsection{
margin-top:8%;
margin-bottom:2%;
width:auto;
}
#nomi-cognomi-svezia.subsubsubsection{
margin-top:8%;
margin-bottom:2%;
width:auto;
}
#stato-civile-popolazione-in-svezia.subsubsubsection{
margin-top:8%;
margin-bottom:2%;
width:auto;}
#territorio-e-densita-popolazione-in-svezia.subsubsubsection{
margin-top:8%;
margin-bottom:2%;
width:auto;
}
#mediazione-affitti.subsubsubsection{
margin-top:8%;
margin-bottom:2%;
width:auto;
}
#turisti-italiani-in-svezia.subsubsubsection{
margin-top:8%;
margin-bottom:2%;
width:auto;
}
#posizione-geografica.subsubsubsection{
margin-top:auto;
margin-bottom:auto;
margin-right:auto;
margin-left:2em;
width:auto;
}
#sommario-svezia.subsection{
margin-top:2%; margin-bottom:2%;
margin-left:2%;
margin-right:2%;
width:100%;
}
#regione-halland.subsubsubsubsubsection{
margin-top:6%;
margin-bottom:2%;
width:auto;
}
#vaestra-goetaland.subsubsubsubsubsection{
margin-top:6%; margin-bottom:2%;
width:auto;
}
#laen-svezia.subsubsubsubsection{
margin-top:8%; margin-bottom:2%;
width:auto;
}

#rune-cellulare.subsubsubsection{
margin-top:12%; margin-bottom:2%;
width:auto;
}
#divisione-amministrativa-territorio-svedese.subsubsubsection{
margin-top:13%;
margin-bottom:2%;
width:auto;
}
#menu.subsection{
color:#000000;
background:#ffffff;
width:30%; padding: 0.5em;
border:1px solid white;
text-align:center;
font-size: smaller;
margin-right:5%;
margin-left:auto;
margin-top:auto;
margin-bottom:auto;
float:left;
}

#informazioni-generali.subsubsection a {
background-color:#ffcc00;
background-image:none;


color:#000000;
display: block;
text-align:center;
}

#in-svezia.subsubsubsection a {
background-color: #99ffcc;
background-image:none;


color: #000000; display: block;
text-align:center;
}

#in-italia.subsubsubsection a {
background-color: #ccffff;
background-image:none;


color: #000000; display: block;
text-align:center;
}

#arredamento-articoli-da-regalo.subsubsection a{
background-color: #cccccc;
background-image:none;

color:#000000;
display: block;
text-align:center;
}

#annunci.subsubsection a {
background-color: #ccccff;
background-image:none;


color: #000000;
display: block;
text-align:center;
}

#servizi-linguistici.subsection a{
background-color:#ffcc00;
background-image:none;


color:#000000;
display: block;
text-align:center;
}

#mediazione-merci.subsubsection a {
background-color: #00ffff;
background-image:none;


color: #000000;
display: block;
text-align:center;
}

#annunci-web.subsubsection a
{
background-color: #ccccff;
background-image:none;


color: #000000;
display: block;
text-align:center;
}

#contenuto-principale.subsection {
margin-top:10%;}
#top.subsection {
margin-left: auto;
margin-right:auto;
text-align:center;
margin-top:6%; margin-bottom:2%;
font-size:smaller;
}
#bottom.subsection
{margin-bottom: 2%;
margin-left: auto;
margin-right:auto;
margin-top: 5%;
}
table.beskrivning-semesterbostader{
margin-bottom:2%;
margin-left:auto;
margin-right:auto;
background-color:#ffffff;
color:#000000;
}

IMG {border:none;}
.one {
float:left;
clear:both;
margin-right:10px;
margin-top:10px;
margin-left:0px;
margin-bottom:0px;
}
.seven{
float: left; margin-left: 0;
padding: 15px; background-color:#0fffff;
color:#000000;
}

ul {
list-style: none;
margin-left: auto;
padding-left:0px;
}
OL {
margin-left:8%;
padding-left:5px;
}

}
li.bilder{
list-style:disc;

display:inline;
padding-left:10px;
padding-right:10px;
}

li.horizontal{
display:inline;
text-indent:7%;
margin:1%;
}


dt{
font-weight:bold;
}

#scaiecat-spa-gigi.subsection
{
background-image: url(/bilder/scaiecat-spa-gigi.jpg);
background-position: top right;
background-repeat: no-repeat;
background-color: #cccccc;
color:#ffffff;
float: right; margin: 2em; border: none;
height: 125px; width: 125px;

Beauregard T. Shagnasty

unread,
Sep 10, 2006, 12:01:38 AM9/10/06
to
Luigi Donatello Asero wrote:

> How does the style-sheet look now?
> I get a parse error.

Doesn't surprise me ...

At least the lines aren't so long. However, it is still a convoluted
mess.

Have you ever even tried to validate it?

http://jigsaw.w3.org/css-validator/validator-uri.html
http://www.htmlhelp.com/tools/csscheck/

Luigi Donatello Asero

unread,
Sep 10, 2006, 12:07:37 AM9/10/06
to

"Beauregard T. Shagnasty" <a.non...@example.invalid> skrev i meddelandet
news:C6MMg.93818$5i3....@bgtnsc04-news.ops.worldnet.att.net...

> Luigi Donatello Asero wrote:
>
> > How does the style-sheet look now?
> > I get a parse error.
>
> Doesn't surprise me ...
>
> At least the lines aren't so long. However, it is still a convoluted
> mess.

It did not play any role whether the lines were long or short...

I got a parse error when I tried to validate it.
But I had to copy and paste the file.
The validator cannot validate https sites for CSS, I think.

dorayme

unread,
Sep 10, 2006, 1:00:18 AM9/10/06
to
In article <uELMg.15989$E02....@newsb.telia.net>,

"Luigi Donatello Asero" <jaggilla...@telia.com> wrote:

> Hello,
> I only have a one-man business......
> who should be interested?

Well, who do you think? Another one man - of course.

--
dorayme

dorayme

unread,
Sep 10, 2006, 1:13:22 AM9/10/06
to
In article <dcMMg.15992$E02....@newsb.telia.net>,

"Luigi Donatello Asero" <jaggilla...@telia.com> wrote:

> "Beauregard T. Shagnasty" <a.non...@example.invalid> skrev i meddelandet
> news:C6MMg.93818$5i3....@bgtnsc04-news.ops.worldnet.att.net...
> > Luigi Donatello Asero wrote:
> >
> > > How does the style-sheet look now?
> > > I get a parse error.
> >
> > Doesn't surprise me ...
> >
> > At least the lines aren't so long. However, it is still a convoluted
> > mess.
>
> It did not play any role whether the lines were long or short...

All this about formatting has to do with it being easy to read.
Nothing about validation. In science there is a relationship
between the simplicity of a theory and its truth only because
humans will likely make a complete hash of testing and assembling
a truly complicated theory. But there is no obvious reason, there
may be a reason but not an obvious one, why reality is
essentially simple. There is a reason why human theories need to
be. It has to do with the limitations of the human mind. Help
humans along Luigi and cast out the CSS and HTML and make
everything simpler. Be as a child and charm and disarm your
customers. Soothe us. Humour us. We are your friends. Have a
website just that you let us see. Let the non-friends have the
difficult one if a difficult one need be.

--
dorayme

Luigi Donatello Asero

unread,
Sep 10, 2006, 8:27:27 AM9/10/06
to

"dorayme" <dorayme...@optusnet.com.au> skrev i meddelandet
news:doraymeRidThis-1F8...@news-vip.optusnet.com.au...


In such a case it would probably not be worth.

Luigi Donatello Asero

unread,
Sep 10, 2006, 8:33:24 AM9/10/06
to

"dorayme" <dorayme...@optusnet.com.au> skrev i meddelandet
news:doraymeRidThis-D7B...@news-vip.optusnet.com.au...

> In article <dcMMg.15992$E02....@newsb.telia.net>,
> "Luigi Donatello Asero" <jaggilla...@telia.com> wrote:
>
> > "Beauregard T. Shagnasty" <a.non...@example.invalid> skrev i
meddelandet
> > news:C6MMg.93818$5i3....@bgtnsc04-news.ops.worldnet.att.net...
> > > Luigi Donatello Asero wrote:
> > >
> > > > How does the style-sheet look now?
> > > > I get a parse error.
> > >
> > > Doesn't surprise me ...
> > >
> > > At least the lines aren't so long. However, it is still a convoluted
> > > mess.
> >
> > It did not play any role whether the lines were long or short...
>
> All this about formatting has to do with it being easy to read.
> Nothing about validation.
They are 2 different things.
What you were talking about had been a top priority if had planned to sell
the website to anybody else.

In science there is a relationship
> between the simplicity of a theory and its truth only because
> humans will likely make a complete hash of testing and assembling
> a truly complicated theory. But there is no obvious reason, there
> may be a reason but not an obvious one, why reality is
> essentially simple. There is a reason why human theories need to
> be. It has to do with the limitations of the human mind. Help
> humans along Luigi and cast out the CSS and HTML and make
> everything simpler. Be as a child and charm and disarm your
> customers. Soothe us. Humour us. We are your friends. Have a
> website just that you let us see. Let the non-friends have the
> difficult one if a difficult one need be.


Spam is a problem nowadays and, in fact, I am wondering, whether I might let
only registered users get in touch by forms and
let all the others get in touch by snail mail.

Luigi Donatello Asero

unread,
Sep 10, 2006, 9:25:46 AM9/10/06
to

"dorayme" <dorayme...@optusnet.com.au> skrev i meddelandet
news:doraymeRidThis-39F...@news-vip.optusnet.com.au...

All these things did not seem to affect the validation

I got this:

Line: 441

Parse error - Unrecognized : }


Where is the line 441?

Beauregard T. Shagnasty

unread,
Sep 10, 2006, 9:40:24 AM9/10/06
to
Luigi Donatello Asero wrote:

> "Beauregard T. Shagnasty" <a.non...@example.invalid> wrote:

>> Have you ever even tried to validate it?
>>
>> http://jigsaw.w3.org/css-validator/validator-uri.html
>> http://www.htmlhelp.com/tools/csscheck/
>
> I got a parse error when I tried to validate it.
> But I had to copy and paste the file.
> The validator cannot validate https sites for CSS, I think.

Did you paste the file into this validator?
http://www.htmlhelp.com/tools/csscheck/

You have errors. Additionally, all those margins in percentages...
percentage of what? It is so difficult to tell. I always set margins
either as em units or maybe in a rare case, some number of pixels. But
percents? Why?

rf

unread,
Sep 10, 2006, 10:07:17 AM9/10/06
to
Luigi Donatello Asero wrote

I usually ignore anything from dorayme and most most certainly ignore
anything Luigi but this one escaped my ignoring. So:

> I got this:
>
> Line: 441
>
> Parse error - Unrecognized : }
>
>
> Where is the line 441?

<quote src="luigi's hideously bloated CSS file">

OL {
margin-left:8%;
padding-left:5px;
}

}
li.bilder{
list-style:disc;
display:inline;

padding-left:10px; <-- *
padding-right:10px;
}

</quote>


* line 441 is right here. Of course you have changed it between your post
and my reading so your and my line numbers are a bit out.

In any case:

Can anybody besides me see a spare } floating around in there?

Luigi you are either a well established troll or you are a bloody idiot. In
the latter case you should hire a second professional man to assist you with
your one man business web site. What you have at the moment, and what I have
seen over the years that I have been following you, fails dismally.

--
Richard


Luigi Donatello Asero

unread,
Sep 10, 2006, 10:10:21 AM9/10/06
to

"rf" <r...@invalid.com> skrev i meddelandet
news:p_UMg.26739$rP1....@news-server.bigpond.net.au...
> Luigi Donatello Asero wrote

> Luigi you are either a well established troll or you are a bloody idiot.
In
> the latter case you should hire a second professional man to assist you
with
> your one man business web site.

I am not interested.
Can you understand that?

Beauregard T. Shagnasty

unread,
Sep 10, 2006, 10:11:04 AM9/10/06
to
Luigi Donatello Asero wrote:

> All these things did not seem to affect the validation
>
> I got this:
>
> Line: 441
>
> Parse error - Unrecognized : }
>
> Where is the line 441?

Can't say exactly; you apparently are changing the file periodically.
However:

OL {
margin-left:8%;
padding-left:5px;
}



} <--- EXTRA BRACE
li.bilder{

See what I mean about having a well-structured file?

Luigi Donatello Asero

unread,
Sep 10, 2006, 10:12:49 AM9/10/06
to

"Beauregard T. Shagnasty" <a.non...@example.invalid> skrev i meddelandet
news:cBUMg.97140$5i3....@bgtnsc04-news.ops.worldnet.att.net...

Because percentages are no absolute units, so they should fit both to a
large and a small window.

Luigi Donatello Asero

unread,
Sep 10, 2006, 10:18:25 AM9/10/06
to

"Beauregard T. Shagnasty" <a.non...@example.invalid> skrev i meddelandet
news:Y1VMg.18187$QM6....@bgtnsc05-news.ops.worldnet.att.net...

> Luigi Donatello Asero wrote:
>
> > All these things did not seem to affect the validation
> >
> > I got this:
> >
> > Line: 441
> >
> > Parse error - Unrecognized : }
> >
> > Where is the line 441?
>
> Can't say exactly; you apparently are changing the file periodically.
> However:
>
> OL {
> margin-left:8%;
> padding-left:5px;
> }
>
>
>
> } <--- EXTRA BRACE
> li.bilder{
>
> See what I mean about having a well-structured file?

This has been fixed but the scrolling bars are still there although the css
external style sheet validates
(and I have not solved my problems with Chinese, by the way, do you know a
very good site about Chinese radicals?)

Luigi Donatello Asero

unread,
Sep 10, 2006, 10:34:36 AM9/10/06
to

"dorayme" <dorayme...@optusnet.com.au> skrev i meddelandet
news:doraymeRidThis-3A0...@news-vip.optusnet.com.au...

Ok.
But just now I have a problem with Chinese.
By the way, there are no scrolling bars on the page
https://www.scaiecat-spa-gigi.com/it/svezia.html
but the tables do not fit very small screen windows...

Luigi Donatello Asero

unread,
Sep 10, 2006, 10:35:57 AM9/10/06
to

"Luigi Donatello Asero" <jaggilla...@telia.com> skrev i meddelandet
news:0oVMg.16033$E02....@newsb.telia.net...

>
> "dorayme" <dorayme...@optusnet.com.au> skrev i meddelandet
> news:doraymeRidThis-3A0...@news-vip.optusnet.com.au...
> > In article
> > <TaLMg.16199$QM6....@bgtnsc05-news.ops.worldnet.att.net>,
> > "Beauregard T. Shagnasty" <a.non...@example.invalid> wrote:
> >
> > > #arredamento-articoli-da-regalo.subsubsection a {
> > > background-color: #cccccc;
> > > background-image:none; <--- defaults can be eliminated
> > > color:#000000;
> > > display: block;
> > > text-align:center;
> > > }
> >
> > and
> >
> > background-color: #cccccc; <-- can be condensed to color:#ccc;
> > color:#000000; <-- can be condensed to color:#000;
>
>
>
> Ok.
> But just now I have a problem with Chinese.
> By the way, there are no scrolling bars on the page
> https://www.scaiecat-spa-gigi.com/it/svezia.html
> but the tables do not fit very small screen windows...


I meant no horizontal scrolling bars.

dorayme

unread,
Sep 10, 2006, 6:23:34 PM9/10/06
to
In article <p_UMg.26739$rP1....@news-server.bigpond.net.au>,
"rf" <r...@invalid.com> wrote:

> Luigi Donatello Asero wrote
>
> I usually ignore anything from dorayme and most most certainly ignore
> anything Luigi but this one escaped my ignoring. So:

> Luigi you are either a well established troll or you are a bloody idiot. In

> the latter case you should hire a second professional man to assist you with
> your one man business web site. What you have at the moment, and what I have
> seen over the years that I have been following you, fails dismally.

Fancy bothering to post such an unprovoked set of mean words,
unleavened by any humour, interesting information, wild and
possibly mildly diverting or entertaining theorising. You have
hurt my feelings. Not everyone is a cold hearted bastard like
you, you know.

OK, lets see what can be done to improve the situation with you.
First thing is this: you will, and I mean, you will go back and
read every single post of mine. There will be an exam at the end
and there will - believe me - be consequences for you if you
fail.

--
dorayme

dorayme

unread,
Sep 10, 2006, 6:32:19 PM9/10/06
to
In article <R8VMg.16032$E02....@newsb.telia.net>,

"Luigi Donatello Asero" <jaggilla...@telia.com> wrote:

> > See what I mean about having a well-structured file?
>
> This has been fixed but the scrolling bars are still there although the css
> external style sheet validates

Validation and the scroll bars to do with the FF extension Edit
CSS side window have nothing much to do with each other.

> (and I have not solved my problems with Chinese, by the way, do you know a
> very good site about Chinese radicals?)

You could perhaps begin with

http://www.tsquare.tv/film/Totnost.html

--
dorayme

Beauregard T. Shagnasty

unread,
Sep 10, 2006, 7:06:53 PM9/10/06
to
Luigi Donatello Asero wrote:

> This has been fixed but the scrolling bars are still there although the css
> external style sheet validates

Sure, it may validate, but the validator doesn't care if you have a
horizontal scrollbar. Your visitors do, however.

As I said, it is going to be some bad combination of your excessive
numbers of margin and/or width settings, where you have exceeded 100%
for the window width. You might have some luck by adding a selector at
the top of your file for:

* { border: 1px solid green; }

..and see what extends beyond the browser viewport. Any place you have
more than - at the most - three thicknesses of the 1px border, well,
you're nesting too deep.

Luigi Donatello Asero

unread,
Sep 16, 2006, 7:28:17 AM9/16/06
to

"Beauregard T. Shagnasty" <a.non...@example.invalid> skrev i meddelandet
news:3EHMg.15494$QM6....@bgtnsc05-news.ops.worldnet.att.net...
> dorayme wrote:
>
> > Seriously Luigi, this is the most complex, most convoluted css to
> > control a page that I have ever seen.
>
> I have seen a few that were worse, but not by much... <lol>
>
> I actually surprised myself by noticing the commas instead of dots.
>
> Liugi's next mission, should he choose to accept it, is to find out what
> is causing the horizontal scrollbar to appear, no matter what the
> browser width is. (I do not intend to tackle that one.)


Your answer seems to suggest that you have not visited that page for a long
time.
I do not see any horizontal scrollbar on the page
https://www.scaiecat-spa-gigi.com/it/svezia.html
However, there is such a scrollbar on the page
https://www.scaiecat-spa-gigi.com/sv/boende-i-italien.php
So, my question is, does it depend on the number of columns in the table?

--
Luigi Donatello Asero
https://www.scaiecat-spa-gigi.com/

我是意大利人


Beauregard T. Shagnasty

unread,
Sep 16, 2006, 8:36:00 AM9/16/06
to
Luigi Donatello Asero wrote:

> "Beauregard T. Shagnasty" <a.non...@example.invalid> wrote:

>> Liugi's next mission, should he choose to accept it, is to find out what
>> is causing the horizontal scrollbar to appear, no matter what the
>> browser width is. (I do not intend to tackle that one.)
>
> Your answer seems to suggest that you have not visited that page for a long
> time.

Your response, seven days later, seems to suggest that you've been
working on the page.

> I do not see any horizontal scrollbar on the page
> https://www.scaiecat-spa-gigi.com/it/svezia.html

> However, there is such a scrollbar on the page
> https://www.scaiecat-spa-gigi.com/sv/boende-i-italien.php

There is in Firefox, but not in Opera.

> So, my question is, does it depend on the number of columns in the table?

Of course.

In the boende-i-italien.php page, I see table styles such as "t10" that
are not defined in your style sheet.

You have lines in the source that scroll horizontally for metres and
metres. I'm not going to attempt to troubleshoot that mess.

Luigi Donatello Asero

unread,
Sep 16, 2006, 9:06:00 AM9/16/06
to

"Beauregard T. Shagnasty" <a.non...@example.invalid> skrev i meddelandet
news:QcSOg.155577$5i3.1...@bgtnsc04-news.ops.worldnet.att.net...

> Luigi Donatello Asero wrote:
>
> > "Beauregard T. Shagnasty" <a.non...@example.invalid> wrote:
> >> Liugi's next mission, should he choose to accept it, is to find out
what
> >> is causing the horizontal scrollbar to appear, no matter what the
> >> browser width is. (I do not intend to tackle that one.)
> >
> > Your answer seems to suggest that you have not visited that page for a
long
> > time.
>
> Your response, seven days later, seems to suggest that you've been
> working on the page.

The website is under construction....
so, yes, it has been updated....


> > I do not see any horizontal scrollbar on the page
> > https://www.scaiecat-spa-gigi.com/it/svezia.html
>
> > However, there is such a scrollbar on the page
> > https://www.scaiecat-spa-gigi.com/sv/boende-i-italien.php
>
> There is in Firefox, but not in Opera.
>
> > So, my question is, does it depend on the number of columns in the
table?
>
> Of course.
>
> In the boende-i-italien.php page, I see table styles such as "t10" that
> are not defined in your style sheet.

Ok. I am going to check it up later.

--
Luigi Donatello Asero
https://www.scaiecat-spa-gigi.com/it/svezia.html
我是意大利人

Reply all
Reply to author
Forward
0 new messages