Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > css positioning question

Reply
Thread Tools

css positioning question

 
 
Knut Krueger
Guest
Posts: n/a
 
      11-17-2006
Hi to all,
I have a problem at this page:
http://uni-regensburg.equine-behavio...ooperation.php

There is a big empty space after
*Kooperationen mit* and the rest of the page
maybe anybody could give me a hint to prevent this space

Regards Knut
The CSS definitons of this container:

#content {
margin-left: 15em;
margin-right: 5em;
white-space:normal;
allign:top;}

..raggedLeft {
display: block;
float: left;

margin: .5em .5em .5em .5em ;
}

..raggedMiddle {
display: block;
float: middle;

margin: .5em .5em .5em .5em ;
}

..raggedRight {
display: block;
float: right;
clear: right;
margin: .5em .5em .5em .5em ;
}

..maxplank {
vertical-align:top;
display: block;
float: left;
clear: left;
margin: 2em 2em 2em 2em;
width:25em;
}
..muenster {
vertical-align:top;
display: block;
float: right;
clear: right;
margin: 2em 2em 2em 2em;
width:25em;
}
..wien {
vertical-align:top;
display: block;
float: left;
clear: left;
margin: 2em 2em 2em 2em;
width:25em;
}


..lpv {
display: block;
float: right;
clear: right;
margin: 2em 2em 2em 2em;
width:25em;
}

..nuernberg {
display: block;
float: left;
clear: left;
margin: 2em 2em 2em 2em;
width:25em;
}
 
Reply With Quote
 
 
 
 
Els
Guest
Posts: n/a
 
      11-17-2006
Knut Krueger wrote:

> Hi to all,
> I have a problem at this page:
> http://uni-regensburg.equine-behavio...ooperation.php
>
> There is a big empty space after
> *Kooperationen mit* and the rest of the page
> maybe anybody could give me a hint to prevent this space


[snip]

> allign:top;}


"allign" is spelled wrong: align has only one 'l'.
Also it's not a valid property, you probably meant 'vertical-align'.

> float: middle;


float:middle; ?? where did you find that one?

In your other stylesheet, you have PHP, but the stylesheet is not
parsed as PHP, so it results in invalid stylesheet content.

http://jigsaw.w3.org/css-validator/ may help with the discovery of
mistakes like that.

Now, your empty space:

> .maxplank {
> vertical-align:top;
> display: block;
> float: left;
> clear: left;


There is your culprit. You cleared the left-floated sidebar, meaning
that div.maxplank will stay below the bottom of div#sidebar.

(this also goes for div.wien and div.nuernberg, but they are already
below sidebar level, so you don't notice)

--
Els http://locusmeus.com/
accessible web design: http://locusoptimus.com/

Now playing: AC/DC - Thunderstruck
 
Reply With Quote
 
 
 
 
Knut Krueger
Guest
Posts: n/a
 
      11-17-2006
Els schrieb:
>
>> allign:top;}

>
> "allign" is spelled wrong: align has only one 'l'.
> Also it's not a valid property, you probably meantalign
>


changed to vertical-align

> float: middle;
>
> float:middle; ?? where did you find that one?


don`t know ... may be long after midnight in my brain ....,
but it was not used - deleted
>
> In your other stylesheet, you have PHP, but the stylesheet is not
> parsed as PHP, so it results in invalid stylesheet content.


It seems that is interpreted by php, because the style sheets are
working, different depending on the browser.
It is included in a php page, but I do not know why the validator does
nor recognize it.
I will look for that, what`s wrong - its an old code and I am using it a
long time ....
>
> http://jigsaw.w3.org/css-validator/ may help with the discovery of
> mistakes like that.


Thank you did not know that, I am was using the html validator but not
css validator
>
> Now, your empty space:

thx it`s working


Regards Knut
 
Reply With Quote
 
Knut Krueger
Guest
Posts: n/a
 
      11-17-2006
Els schrieb:
> ... You cleared the left-floated sidebar, meaning
> that div.maxplank will stay below the bottom of div#sidebar.
>


Ok .. it is working just like I want ... but is there a possibility to
set the clear option only for the current container?

Or other question is this now the best way to display the page?
means the container content
http://uni-regensburg.equine-behavio...ooperation.php

Regards Knut
 
Reply With Quote
 
Els
Guest
Posts: n/a
 
      11-17-2006
Knut Krueger wrote:

> Els schrieb:
>> ... You cleared the left-floated sidebar, meaning
>> that div.maxplank will stay below the bottom of div#sidebar.
>>

>
> Ok .. it is working just like I want ... but is there a possibility to
> set the clear option only for the current container?


Yes, by floating that container itself, but that has the disadvantage
of losing your flexible width. In your case though, I would think (not
tested), that clearing all those floats to the right only, would have
the desired effect, since you have no floated sidebar on the right.

> Or other question is this now the best way to display the page?
> means the container content
> http://uni-regensburg.equine-behavio...ooperation.php


Not sure what you mean by 'the best way to display the page'?

--
Els http://locusmeus.com/
accessible web design: http://locusoptimus.com/
 
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
Basic CSS positioning Question?? Spartanicus HTML 11 09-06-2004 04:58 AM
css positioning question Leslie HTML 23 11-10-2003 09:26 AM
another CSS positioning question.... Leslie HTML 4 11-02-2003 02:21 AM
Positioning a table cell (not a css/div question) Pat Traynor HTML 3 09-24-2003 09:35 AM
Absolute Positioning (CSS Question) Matt Beckwith HTML 4 07-18-2003 10:47 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