-
ul text on two lines
Hi,
I have the following code in use.
Code:
<li><img src="images/thumbs/106.jpg" data-large="images/fulls/106.jpg" data-description="Seven drawer chest £110 H 156cm W 62cm D 44cm" /></a></li>
I would like to have the text on two lines.
So i would see on 1st line Seven drawer chest then the rest on line two.
Please can you advise how this would be done
Thanks
-
Try this:
Code:
<li><img src="images/thumbs/106.jpg" data-large="images/fulls/106.jpg" data-description="Seven drawer chest<br />£110 H 156cm W 62cm D 44cm" /></a></li>
-
Evening.
I will check again tomorrow but I am sure I tried that and the result was it was shown between the text as opposed to actually making the text wrap etc.
-
Hi,
Yes i did try that and the text is shown like so,
Seven drawer chest<br />£110 H 156cm W 62cm D 44cm
-
Is it possible to change this code so I can have text on two lines ?
-
I think it might be because you are using text maybe try
Seven drawer chest\n£110 H 156cm W 62cm D 44cm
That probably wont work tho.
if that doesnt work you need to find the javascript that changes the data-description tag from text to html.
-
Morning,
You were correct \n didnt work.
I will try and look for the advised script.
I know this will be an issue for me though but i will try and see what happens.
Thanks for the reply.
-
Just had a thought but maybe not even possible.
Can a wildcard be used like * which with the correct css etc will then apply the function of < br> ?
As you can see my research isn’t going to plan on making this happen.
-
Now all sorted.
Had to change .text to .html then when i applied <br> it worked.
Thanks