- Posts: 4
Postings
You can freely browse the forum and post in the community forum.
However, you need a valid license to write posts for support (own a valid commercial software license or have purchased a support membership).
Posts only show once reviewed. This is mainly preventive to keep spam away. Thank you for your understanding!
News beside each other
- matteopagni
-
Topic Author
- New Member
-
Less
More
IP: 151.66.26.117
14 years 4 months ago #592
by matteopagni
News beside each other was created by matteopagni
hello,
I've found the same question on JED comments, but I've not been able to find the answers...sorry if someone gave it already!
I'm trying to have the latest news close to each other instead of one after the other:
Not this way:
news 1
news 2
news 3
But this way:
news 1 news 2 news 3
How could I achieve that?
Thank you very much in advance
Matteo
I've found the same question on JED comments, but I've not been able to find the answers...sorry if someone gave it already!
I'm trying to have the latest news close to each other instead of one after the other:
Not this way:
news 1
news 2
news 3
But this way:
news 1 news 2 news 3
How could I achieve that?
Thank you very much in advance
Matteo
- admin
-
- Administrator
-
Less
More
- Posts: 1931
IP: 207.229.131.129
14 years 4 months ago #595
by admin
Olivier.
Replied by admin on topic Re: News beside each other
Hello,
you can achieve this with CSS, by adding the following code to your template:
you can achieve this with CSS, by adding the following code to your template:
Code:
.newslist {
overflow: hidden; /*to avoid overlappings */
}
.newslist .news {
display: inline-block; /* needed for IE I think */
float: left;
width: 200px; /* whichever size you want */
}
Olivier.
- matteopagni
-
Topic Author
- New Member
-
Less
More
- Posts: 4
IP: 151.66.26.117
14 years 4 months ago #605
by matteopagni
Replied by matteopagni on topic Re: News beside each other
Hello Olivier and thank you for your time,
sorry but I'm quite a newbie with Joomla and I don't know exactly where to put my hands...
...as first step I simply added the lines you wrote to the style.css.php file of your module...but nothing changed.
Then I changed the first lines of the same file as following:
ORIGINAL
.latestnewsenhanced_<?php echo $suffix; ?>.newslist {
}
.latestnewsenhanced_<?php echo $suffix; ?> .onecatlink {
margin-top: 20px;
}
.latestnewsenhanced_<?php echo $suffix; ?> .news {
overflow: hidden;
margin-top: 10px;
}
UPDATED:
.latestnewsenhanced_<?php echo $suffix; ?>.newslist { overflow: hidden; /*to avoid overlappings */
}
.latestnewsenhanced_<?php echo $suffix; ?>.newslist .news {
display: inline-block; /* needed for IE I think */
float: left;
width: 200px; /* whichever size you want */
}
.latestnewsenhanced_<?php echo $suffix; ?> .onecatlink {
margin-top: 20px;
}
.latestnewsenhanced_<?php echo $suffix; ?> .news {
overflow: hidden;
margin-top: 10px;
}
But nothing changed as well...
Is quite clear that I'm missing something!
Could you help?
In case you need to know, I'm using tk_watercolors as a template.
Thank you very much
Matteo
sorry but I'm quite a newbie with Joomla and I don't know exactly where to put my hands...
...as first step I simply added the lines you wrote to the style.css.php file of your module...but nothing changed.
Then I changed the first lines of the same file as following:
ORIGINAL
.latestnewsenhanced_<?php echo $suffix; ?>.newslist {
}
.latestnewsenhanced_<?php echo $suffix; ?> .onecatlink {
margin-top: 20px;
}
.latestnewsenhanced_<?php echo $suffix; ?> .news {
overflow: hidden;
margin-top: 10px;
}
UPDATED:
.latestnewsenhanced_<?php echo $suffix; ?>.newslist { overflow: hidden; /*to avoid overlappings */
}
.latestnewsenhanced_<?php echo $suffix; ?>.newslist .news {
display: inline-block; /* needed for IE I think */
float: left;
width: 200px; /* whichever size you want */
}
.latestnewsenhanced_<?php echo $suffix; ?> .onecatlink {
margin-top: 20px;
}
.latestnewsenhanced_<?php echo $suffix; ?> .news {
overflow: hidden;
margin-top: 10px;
}
But nothing changed as well...
Is quite clear that I'm missing something!
Could you help?
In case you need to know, I'm using tk_watercolors as a template.
Thank you very much
Matteo
- admin
-
- Administrator
-
Less
More
- Posts: 1931
IP: 207.229.131.129
14 years 4 months ago - 14 years 4 months ago #606
by admin
Olivier.
Replied by admin on topic Re: News beside each other
Hello Matteo,
The changes I suggested work on my template, but something different may need to be done with yours. Could you send me the 'live' URL so I can check what is wrong? Thanks.
The changes I suggested work on my template, but something different may need to be done with yours. Could you send me the 'live' URL so I can check what is wrong? Thanks.
Olivier.
Last edit: 14 years 4 months ago by admin.
- matteopagni
-
Topic Author
- New Member
-
Less
More
- Posts: 4
IP: 151.66.26.117
14 years 4 months ago #608
by matteopagni
Replied by matteopagni on topic Re: News beside each other
Hi Olivier and thank again for your kindness.
You can find your module working on:
www . faqtotumwebdesignermilano . it / armj
it is now set as standard, none of the changes you suggested are on...because I didn't know where to apply them!

Thank you again
Matteo
You can find your module working on:
www . faqtotumwebdesignermilano . it / armj
it is now set as standard, none of the changes you suggested are on...because I didn't know where to apply them!
Thank you again
Matteo
- admin
-
- Administrator
-
Less
More
- Posts: 1931
IP: 207.229.131.129
14 years 4 months ago #611
by admin
Olivier.
Replied by admin on topic Re: News beside each other
Thank you!
The code I gave you works on your template. I modified a couple things:
Add this code to your template's CSS as is (template.css usually).
The code I gave you works on your template. I modified a couple things:
Code:
.latestnewsenhanced_93.newslist {
overflow: hidden; /* to avoid overlappings */
}
.latestnewsenhanced_93 .news:first-child {
margin-top: 10px !important;
}
.latestnewsenhanced_93 .news {
display: inline-block; /* needed for IE */
float: left;
width: 300px;
}
Add this code to your template's CSS as is (template.css usually).
Olivier.
