- Posts: 147
COMMUNITY FORUM
Solved! Unidentified layout problems
- Mats Arvendal
-
Topic Author
- Offline
- Premium Member
Less
More
15 years 1 week ago #83156
by Mats Arvendal
Solved! Unidentified layout problems was created by Mats Arvendal
I have encountered a strange layout problem that occurs in Firefox.
When I disable the category block from being displayed in category view (I want the items/articles to appear from the top of the content area) a weird result apppears. The page looks all right when I check in IE 6&8 and Chrome, but in Firefox the column is pushed down some pixels - enough to make all horizontal alignment break.
I haven't the slightest idea what may cause this behaviour. Has anyone experienced anything like this?
When I disable the category block from being displayed in category view (I want the items/articles to appear from the top of the content area) a weird result apppears. The page looks all right when I check in IE 6&8 and Chrome, but in Firefox the column is pushed down some pixels - enough to make all horizontal alignment break.
I haven't the slightest idea what may cause this behaviour. Has anyone experienced anything like this?
Please Log in or Create an account to join the conversation.
- william white
-
- Offline
- Platinum Member
Less
More
- Posts: 3722
15 years 1 week ago #83157
by william white
Replied by william white on topic Solved! Unidentified layout problems
Please send a link to the affected page
Please Log in or Create an account to join the conversation.
- Simon Wells
-
- Offline
- Platinum Member
Less
More
- Posts: 955
15 years 1 week ago #83158
by Simon Wells
Replied by Simon Wells on topic Solved! Unidentified layout problems
As William has said, an image or a link would be good.
I suspect that maybe it could be clr div causing issues, but would need to check.
Simon
K2 Support
I suspect that maybe it could be clr div causing issues, but would need to check.
Simon
K2 Support
Please Log in or Create an account to join the conversation.
- Mats Arvendal
-
Topic Author
- Offline
- Premium Member
Less
More
- Posts: 147
15 years 1 week ago #83159
by Mats Arvendal
Replied by Mats Arvendal on topic Solved! Unidentified layout problems
I would appreciate if you can help me.
It's a development site, protected by password.
Here's the link:
fib.se/joomla15/
Look in attached file for pw.
Here's the problem: The image doesn't align in firefox:
Rgds
It's a development site, protected by password.
Here's the link:
fib.se/joomla15/
Look in attached file for pw.
Here's the problem: The image doesn't align in firefox:
Rgds
Please Log in or Create an account to join the conversation.
- Mats Arvendal
-
Topic Author
- Offline
- Premium Member
Less
More
- Posts: 147
15 years 5 days ago #83160
by Mats Arvendal
Replied by Mats Arvendal on topic Solved! Unidentified layout problems
Hello again,
I have made some more tests, and suprisingly this problem occurs even when I use a simple template using only a div for a page header and a div underneath for the content. So strange... I started to create the development site first with K2 v 2.1 and I did not experience any problem like this (apart from the .clr in some modules that I had to hide with display:none). And now when I use K2 ver 2.2 it's totally impossible to get it right. Either I am really stupid or there must be something very odd...
I have made some more tests, and suprisingly this problem occurs even when I use a simple template using only a div for a page header and a div underneath for the content. So strange... I started to create the development site first with K2 v 2.1 and I did not experience any problem like this (apart from the .clr in some modules that I had to hide with display:none). And now when I use K2 ver 2.2 it's totally impossible to get it right. Either I am really stupid or there must be something very odd...
Please Log in or Create an account to join the conversation.
- Mats Arvendal
-
Topic Author
- Offline
- Premium Member
Less
More
- Posts: 147
15 years 5 days ago #83161
by Mats Arvendal
Replied by Mats Arvendal on topic Solved! Unidentified layout problems
Solved!
It was the line # 316 in K2.css that caused the strange behaviour in Firefox: div.itemContainer {float:left;}. Just remove float:left and everything aligns correctly.
Rgds
It was the line # 316 in K2.css that caused the strange behaviour in Firefox: div.itemContainer {float:left;}. Just remove float:left and everything aligns correctly.
Rgds
Please Log in or Create an account to join the conversation.
- Warrick Van Den Heever
-
- Offline
- New Member
Less
More
- Posts: 15
14 years 8 months ago #83162
by Warrick Van Den Heever
Replied by Warrick Van Den Heever on topic Solved! Unidentified layout problems
I am having the same problem. Removing the {float:left;} does work to get the alignment right, but then all articles fall out of their columns. Is there another solution?
Please Log in or Create an account to join the conversation.
- Mats Arvendal
-
Topic Author
- Offline
- Premium Member
Less
More
- Posts: 147
14 years 8 months ago #83163
by Mats Arvendal
Replied by Mats Arvendal on topic Solved! Unidentified layout problems
That was a drawback! I have not used multiple columns like you do, but I am just about to change part of the website into displaying articles with 2 cols. So I suppose I will experience the same problem as you. I will look into the matter, but I would be very grateful if anyone more experienced than me has an idea how to fix it. If I find a solution I will keep you posted.
Rgds
Rgds
Please Log in or Create an account to join the conversation.
- Warrick Van Den Heever
-
- Offline
- New Member
Less
More
- Posts: 15
14 years 8 months ago #83164
by Warrick Van Den Heever
Replied by Warrick Van Den Heever on topic Solved! Unidentified layout problems
This is not a solution just a workaround. I am using one lead-in story so this works for me.
Create a new template then delete
class="itemContainer" from category.php in your template under Leading Items.
Create a new template then delete
class="itemContainer" from category.php in your template under Leading Items.
Please Log in or Create an account to join the conversation.
- Mats Arvendal
-
Topic Author
- Offline
- Premium Member
Less
More
- Posts: 147
14 years 8 months ago #83165
by Mats Arvendal
Replied by Mats Arvendal on topic Solved! Unidentified layout problems
Sounds interesting. I will check this work-around.
Rgds
Rgds
Please Log in or Create an account to join the conversation.