re size tittle over category

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
7 years ago
Hi I am trying to keep all my categories in the grid to look uniform.
if the category name is longer on one it takes up 2 lines if it is shorter it only takes up 1 line, thus pushing the image up or down which makes the page look untidy.
any help would be appreciated.
many thanks
7 years ago
shlom wrote:
Hi I am trying to keep all my categories in the grid to look uniform.
if the category name is longer on one it takes up 2 lines if it is shorter it only takes up 1 line, thus pushing the image up or down which makes the page look untidy.
any help would be appreciated.
many thanks



Keep all category name in one line(both small and long) for long name you need to apply some css like

.single-line {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

and the output should look like. You may need to add more css. Long category name will appear at one line and the extra word will replace by dots(........)



7 years ago
thank you I will give it a try.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.