- 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 image border and rounded corners
- ians
-
Topic Author
- New Member
-
Less
More
IP: 82.6.252.181
14 years 4 days ago #1260
by ians
News image border and rounded corners was created by ians
Hi there,
Just installed latest news enhanced and looks to do pretty much what I want. If possible, I would like to have no border round the thumbnail and rounded corners. I saw a previous thread which suggested the following CSS code for removing the borders and I've tried this in firebug.
However i can't see where to edit the CSS for the extension.
Probably really basic -sorry, but a point in the right direction would be appreciated,
Yours,
ian
Just installed latest news enhanced and looks to do pretty much what I want. If possible, I would like to have no border round the thumbnail and rounded corners. I saw a previous thread which suggested the following CSS code for removing the borders and I've tried this in firebug.
However i can't see where to edit the CSS for the extension.
Probably really basic -sorry, but a point in the right direction would be appreciated,
Yours,
ian
- admin
-
- Administrator
-
Less
More
- Posts: 1931
IP: 207.229.131.129
14 years 3 days ago #1263
by admin
Olivier.
Replied by admin on topic Re: News image border and rounded corners
Hello Ian,
you should actually leave module stylesheets alone (in general, not only with my extensions) so that when you update them, your work is not overwritten and lost. In my case, I actually use a separate stylesheet that I load in my template that overrides all extensions installed, when they need tweaking.
So I would suggest you add the CSS code to your template, either in its own stylesheet or, better, in a separate one that you load from your template.
you should actually leave module stylesheets alone (in general, not only with my extensions) so that when you update them, your work is not overwritten and lost. In my case, I actually use a separate stylesheet that I load in my template that overrides all extensions installed, when they need tweaking.
So I would suggest you add the CSS code to your template, either in its own stylesheet or, better, in a separate one that you load from your template.
Olivier.
- mavel
-
- New Member
-
Less
More
- Posts: 2
IP: 217.133.210.66
14 years 23 hours ago #1282
by mavel
Replied by mavel on topic Re: News image border and rounded corners
Thanks, but how do I override the style of your extension?
- admin
-
- Administrator
-
Less
More
- Posts: 1931
IP: 207.229.131.129
14 years 21 hours ago #1287
by admin
Olivier.
Replied by admin on topic Re: News image border and rounded corners
You have to look through the source code of your html page to find what element class you want to override. A great tool for that is Firebug (works wonders in Firefox).
Then add the code to your template's CSS, something like:
That will override the module's CSS (note that the !important property assures that your style has priority).
Then add the code to your template's CSS, something like:
Code:
.news .picture {
border: none !important;
padding: 0 !important;
}
That will override the module's CSS (note that the !important property assures that your style has priority).
Olivier.
