Jump to content

Image slider for your homepage text to the right


Recommended Posts

Hello everyone,

 

I have a problem with Image slider module, I'd like to have text on the right, so I made:

 

 

<h2 style="text-align: right;">New collection</h2>
<p style="text-align: right;">Soon you will be able to see our new jewelry collection.</p>
<p style="text-align: right;"><button class="btn btn-default" type="button">Shop now !</button></p>

 

You can see the effect in the attachments.

How to repair it?

 

Edit: It seems like I have some kind of colums there, longer text wraps after 4-5 words

post-806085-0-43908000-1415705908_thumb.png

Edited by Crowell (see edit history)
Link to comment
Share on other sites

Try to open yourdomain/themes/default-bootstrap/css/modules/homeslider/homeslider.css and find below code:

#homepage-slider .homeslider-description p {
    color: white;
    font-size: 1.15em;
    line-height: 1.3em;
    padding: 0.5em 0;
    width: 50%;
}

Change to:

#homepage-slider .homeslider-description p {
    color: white;
    font-size: 1.15em;
    line-height: 1.3em;
    padding: 0.5em 0;
    width: 50%;
    text-align: right;
}

and remove styling from actual text

  • Like 2
Link to comment
Share on other sites

  • 2 weeks later...

It aligned text to the right and kept it inside of this "column", so basically exactly what I have added to the .css

 

I tried also to change width: 50%; for 100%, but it didn't help either.

The point of it is also to change it only for some slides, I don't want to have all of them on the right.

Edited by Crowell (see edit history)
  • Like 1
Link to comment
Share on other sites

  • 1 year later...

hi its Djdarki from iran , i have same problem in 1.6.1.2 

i have default theme and i want to make all of it align to right but its just text moved .

is there any modul or any CSS move for make it Align to Right ???

its important to me for make it aligne right because our languange are start from right (persian)

also i had First default theme and it was allready aligne to right . i removed it to make this one .

 

 

i work on it in LOCALHOST 

please let me know it there is A answer for me .

...

DjDarki from iran - live in turkey

 

instagram : Djdarki

Telegram : Djdarki

Link to comment
Share on other sites

  • 2 weeks later...

Try adding this to the homeslider.css

 

  #homepage-slider .homeslider-description {
    position: absolute;
    left: 0;
    top: 0;
    padding: 50px 50px;
    cursor: pointer; 
    right:0;}

 

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...