New Line Spacing – Line Breaks etc
This might sound incredibly stupid so I apologise now if I’ve missed something obvious…
If you look at one of my grandchild pages under the parent pages “Guitars”, (http://carsandguitars.co.uk/electric/les-paul/ for example) you’ll see that to the right of each thumbnail, I have 3 lines of text, with a break between each one.
For some reason, whenever I edit anything on one of these pages, whether it be adding a new row or even just changing some text, when I update the page, the first line break disappears. I then have to go through and hit “enter/return” in every place I want a line break, and when I update it a second time the breaks stay in place.
Can anyone explain why this is happening? It’s wasting a huge amount of my time when all I need to do is change a price or a single word at times.
*The default writing format is “paragraph” which in this theme puts a line break every time you start a new line. It’s this automatically produced line break that disappears, but only between the first two lines, hardly ever between the second and third.*
The blog I need help with is carsandguitars.co.uk.
That’s because the sourcecode inside your table cells is faulty (it includes closing p tags without the corresponding opening ones and vv). Instead of trying to correct things inside the cells, the proper solution is to remove all the table coding. You don’t need tables for this kind of arrangement. All you need for each image/text pair is this:
LEFT-ALIGNED IMAGE CODE HERE THREE LINES OF TEXT HERE <div style="clear:both;"></div>
Great thanks! The whole reason I tabled it at all was because I couldn’t make all the thumbnails align properly underneath each other, that’s solved more problems than expected! Thanks man
Yes, I know! Many users resort to tables because of this, while all you need is the piece of code I suggested. This piece of code says clear the floats, that is, stop the wrap-around effect of left- and right-aligned elements.
The topic ‘New Line Spacing – Line Breaks etc’ is closed to new replies.