Styling catalogue icons and text


i working on web page: http://www.cprtrainingmackay.com.au/courses , trying style catalogue boxes display entire catalogue name , image icon. if @ page right now, you'll see text being hidden behind catalogue image. there way fix if client enters long catalogue name, box automatically adjusts height accommodate?

 

also, i've tried playing line-height css property of text there isn't such big gap between lines, doesn't seem changing anything, how change this?

 

thanks in advance.

 

nicole

let's examine you've got going on here... each catalog item wrapped in div.shop-catalogue.  , div.shop-catalogue set have height of 180px , set "overflow:hidden" means content inside rendered on 180px in height not visible. 

 

if had setup can have number of lines of catalog name long name, push icon catalogue further down inside div.shop-catalogue , see half of shop icon because you've got 4 lines of catalog title push icon down.

 

if decided, instead, remove "overflow:hidden" css property div.shop-catalogue div.shop-catalogue grow in height accomodate lines title , icon, if had 1 row has few one-line titles , catalog 4 line title, catalog item 4-lined title taller rest , throw off layout because catalog items different heights.

 

i think best bet here have client try keep catalog names maximum length.  then, in css set catalog titles 3 lines in height , past hidden "overflow: hidden".

 

you on right track line-height option-- should use make sure titles don't have vertical spacing-- right now, can fix adding css style main stylesheet says:

 

.shop-catalogue h4 { line-height: 1.2; }

 

this make each line has little spacing.  if want make title takes 3 lines icons , text consistently formatted should adapt css to:

 

.shop-catalogue h4 { line-height: 1.2; height: 3.25em; overflow: hidden; margin: 5px auto; }

 

this make sure titles 3 lines in height little space below , hide text on 4th line , preserve layout.  now, in order bring catalogue image closer bottom of title, can add css main stylesheet:

 

.shop-catalogue .image { padding: 0; }

 

this remove padding that's set in bc's default modulestylesheets.css file.  if css changes in all.css file catalog should better , accomodate maximum of 3 lines title on hidden. can't allow number of multiple lines because having 4 or more lines title items repeating share same style break layout , lead different catalog items having different heights , make shop catalog page inconsistent , break layout.



More discussions in How to - HTML / CSS / JavaScript


adobe

Comments

Popular posts from this blog

Thread: gpg: Conflicting Commands

Adobe Acrobat Pro , Terminal Server Use

when i try using AE CC 3d camera tracker after the first step it says "Analysis solve failed." help?