![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Using a 4 col css page, I cannot get the photo's to line up with text added. I have use float and get different results. I have try it a number of ways with no luck. If there next to no text, it works. The text will vary from row to row and on over 3,000 pages and trying to get the same script for each page. |
#3
| |||
| |||
|
|
Using a 4 col css page, I cannot get the photo's to line up with text added. I have use float and get different results. I have try it a number of ways with no luck. If there next to no text, it works. The text will vary from row to row and on over 3,000 pages and trying to get the same script for each page. I want the text to start at the top of photo's and if it has to wrap around it, I want the next row to be even. |
|
I have try also without col's <p><span class="num1"> <photo> </ span><span class="num2"> <photo> </span><span class="num3"> <photo> </ span><span class="num4"> <photo> </span></p> where float is in the class and work if no text. If I add text, it push the photo below it out of line. If I move float to the photo, it kills the page. http://transit.davidfisher.biz/ttc/construction/stclairrow/2009/2009phaseII-2.html Float is with the photo http://transit.davidfisher.biz/ttc/construction/stclairrow/2009/2009phaseII-6.html http://transit.davidfisher.biz/testphoto.html any help is welcome thanks |
#4
| |||
| |||
|
|
drum118 wrote: Using a 4 col css page, I cannot get the photo's to line up with text added. I have use float and get different results. I have try it a number of ways with no luck. If there next to no text, it works. The text will vary from row to row and on over 3,000 pages and trying to get the same script for each page. I want the text to start at the top of photo's and if it has to wrap around it, I want the next row to be even. div class="thumb" whatever /div .thumb{ * * * * width: some-width; * * * * display: inline-block; * * * * vertical-align: top; * * * * margin: some_margin; } see earlier posting in this group on fixes for early version of IE and inline-block; * You will need to specify a width, but not a height. If any content in the thumb container is floated you will have to use one of the techniques for giving the containing block a height. I believe all this is in an earlier post of mine on lists. * *Jeff I have try also without col's <p><span class="num1"> <photo> </ span><span class="num2"> <photo> </span><span class="num3"> <photo></ span><span class="num4"> <photo> </span></p> where float is in the class and work if no text. If I add text, it push the photo below it out of line. If I move float to the photo, it kills the page. http://transit.davidfisher.biz/ttc/construction/stclairrow/2009/2009p... Float is with the photo http://transit.davidfisher.biz/ttc/construction/stclairrow/2009/2009p... http://transit.davidfisher.biz/testphoto.html any help is welcome thanks |
#5
| |||
| |||
|
|
My fear was answer and that going with tables. |
#6
| |||
| |||
|
|
drum118 wrote: Er, which bit of what post are you replying to? My fear was answer and that going with tables.` What's wrong with that? You are trying to position stuff in a grid. A grid in HTML is best realised with a table. |
| |
#7
| |||
| |||
|
|
rf wrote: drum118 wrote: Er, which bit of what post are you replying to? My fear was answer and that going with tables.` What's wrong with that? You are trying to position stuff in a grid. A grid in HTML is best realised with a table. With either float: left or display: inline-block, the row will wrap a the end of the line no matter where it is, something a table never could. Inline-block does these in a cleaner fashion than floating as you don't have to worry about heights. I switched over to inline-block some months ago, it works superbly. |
#8
| |||
| |||
|
|
In article <h3m638$7ac$1 (AT) news (DOT) albasani.net>, jeff <jeff_thies (AT) att (DOT) net wrote: rf wrote: drum118 wrote: Er, which bit of what post are you replying to? My fear was answer and that going with tables.` What's wrong with that? You are trying to position stuff in a grid. A grid in HTML is best realised with a table. With either float: left or display: inline-block, the row will wrap a the end of the line no matter where it is, something a table never could. Inline-block does these in a cleaner fashion than floating as you don't have to worry about heights. I switched over to inline-block some months ago, it works superbly. IE6 and 7 do not give good support for this, so you might be doing various tricky things to make IE play along. |
|
--- If all the thumbnails are 112 x 149 as in OP's examples it makes things easier for designing the page. With a bit more management and tweaking to suit the situation, the following CSS is not exactly complex and uses space reasonably efficiently: If your caption spiels are within certain limits, you can tweak the max-width of the floated div boxes to lessen the chances of text wrapping under the pic and so making the heights variable and increasing the possibility of snagging. A bit of classing for when one has thumbnails without spiels and this is one way to go... Another variation is to stick a min height on them all to allow for the rarer wrap but keep a certain even regularity... Te beauty of floats, as you point out is a real fluidity which tables simply can never give one. http://dorayme.890m.com/thumbnailsWithCaptionsFloats.html |
|
(Temporary trouble with my paid server so I use this free server for this minute which might have some host junk on it? They are always doing something or other I don't want. You would think they would give one better value for ones outlay. They are now virtually advertising, unannounced to me, on these pages which they promised they would not do. I gave them $0 - that is $US0 - and see how they treat me!) |
#9
| |||
| |||
|
|
IE6 and 7 do not give good support for this, so you might be doing various tricky things to make IE play along. There are two options, one is simply to use conditional comments |
#10
| |||
| |||
|
|
In article <h3mdgv$gp7$1 (AT) news (DOT) albasani.net>, jeff <jeff_thies (AT) att (DOT) net wrote: IE6 and 7 do not give good support for this, so you might be doing various tricky things to make IE play along. There are two options, one is simply to use conditional comments Got a URL of a page of pic/caption boxes of varying amounts of text that have no problems on all major browsers and that adjust to use available space in efficient manner? Nothing at the moment that isn't behind a password. I usually work in |
![]() |
| Thread Tools | |
| Display Modes | |
| |