- Posts: 23
- Thank you received: 0
changing the size of the carousel
-
hibernitel
Inactive member - Topic Author
- Member
Less
More
11 years 3 months ago #32709
by hibernitel
changing the size of the carousel was created by hibernitel
I want to reduce the height of the carousel on the Responsive Portfolio template - any advice on how to do this? thanks
Please Log in to join the conversation.
-
ivan.milic
Support Staff - Moderator
Less
More
- Posts: 14116
- Thank you received: 1639
11 years 3 months ago #32711
by ivan.milic
Replied by ivan.milic on topic changing the size of the carousel
You mean full carousel. Open modules/mod_hot_full_carousel/tmpl/style.css
.hero-carousel div.carousel-article {
margin: 0 auto;
min-height: 617px;
display: block;
float: left;
position: relative;
}
Change min-height,after that of course you still need to pick image size properly or you can set max-height also.
also:
.hero-carousel div.carousel-article .contents {
position: relative;
top: 160px;
change top property to move text up.
.hero-carousel div.carousel-article {
margin: 0 auto;
min-height: 617px;
display: block;
float: left;
position: relative;
}
Change min-height,after that of course you still need to pick image size properly or you can set max-height also.
also:
.hero-carousel div.carousel-article .contents {
position: relative;
top: 160px;
change top property to move text up.
Please Log in to join the conversation.
-
valerius
Inactive member - New Member
Less
More
- Posts: 4
- Thank you received: 0
11 years 2 months ago #33540
by valerius
Replied by valerius on topic changing the size of the carousel
This din;t solve a problem. Please, see attacment
There are some "style" attrbutes in div elements/
The problem in on this line parameter style="height: 617px;"
<div data-role="header" class="responsive_header ui-header ui-bar-a" role="banner" style="height: 617px;">
In template this look like
<div data-role="header" class="responsive_header">
I wondering, Where do the style parameter add?
There are some "style" attrbutes in div elements/
The problem in on this line parameter style="height: 617px;"
<div data-role="header" class="responsive_header ui-header ui-bar-a" role="banner" style="height: 617px;">
In template this look like
<div data-role="header" class="responsive_header">
I wondering, Where do the style parameter add?
Please Log in to join the conversation.
-
ivan.milic
Support Staff - Moderator
Less
More
- Posts: 14116
- Thank you received: 1639
11 years 2 months ago #33545
by ivan.milic
Replied by ivan.milic on topic changing the size of the carousel
Its added from script but this css:
DIV.responsive_header{
height: <your value>!important;
}
can override it if you put in bottom of template_css.css
DIV.responsive_header{
height: <your value>!important;
}
can override it if you put in bottom of template_css.css
Please Log in to join the conversation.
-
valerius
Inactive member - New Member
Less
More
- Posts: 4
- Thank you received: 0
11 years 2 months ago #33550
by valerius
Replied by valerius on topic changing the size of the carousel
Thank you for your quick replay. Unfortunatly, it's not a good solution in common.
The reason is pages whithout Carusel module. Look at attached image.
If I deactivate string DIV.responsive_header {height: 317px !important;}
the regular page came normal.
I think a good idea is to point me where the script set parameter "height:..." om main page for tags I sad above.
PS I can put the CSS fragment "DIV.responsive_header {height: 317px !important;}" direct in module Hot Carusel and it will solve the problem. But I prefer to control any aspect of site working.
The reason is pages whithout Carusel module. Look at attached image.
If I deactivate string DIV.responsive_header {height: 317px !important;}
the regular page came normal.
I think a good idea is to point me where the script set parameter "height:..." om main page for tags I sad above.
PS I can put the CSS fragment "DIV.responsive_header {height: 317px !important;}" direct in module Hot Carusel and it will solve the problem. But I prefer to control any aspect of site working.
Please Log in to join the conversation.
-
ivan.milic
Support Staff - Moderator
Less
More
- Posts: 14116
- Thank you received: 1639
11 years 2 months ago #33563
by ivan.milic
Replied by ivan.milic on topic changing the size of the carousel
In index.hp of template you will see:
$top_container_height = $this->params->get("top_menu_height", "617");
...
top_menu_hight: <?php echo $top_container_height; ?>,
...
also in js/dynlayout.js you can trace top_menu_hight variable to see how it is used
$top_container_height = $this->params->get("top_menu_height", "617");
...
top_menu_hight: <?php echo $top_container_height; ?>,
...
also in js/dynlayout.js you can trace top_menu_hight variable to see how it is used
Please Log in to join the conversation.
Time to create page: 0.175 seconds