December 29, 200817 yr Hey All, Hope everyone had a great Christmas and now looking forward to the great New Years party Please take a look at the following screenshot. You'll notice that I have one bunch of text that is underlined individually, whereas the next paragraph only shows the underlining at the complete end of the paragraph. The strange thing is that they both use the same CSS but the first paragrah uses a span tag : span.standard { font-family: "Trebuchet MS"; font-size: 13px; font-style: italic; /*color: #9c4275; color: Black;*/ /*background-color: Olive;*/ background-color: Black; /*color: #a5db30;*/ color: White; padding-bottom: 5px; padding-right: 9px; border-bottom:1px solid #a5db30; line-height: 26px; margin-left: 12px; } Where as the second paragrah uses a paragraph tag <p> p.standard { font-family: "Trebuchet MS"; font-size: 13px; font-style: italic; /*color: #9c4275; color: Black;*/ /*background-color: Olive;*/ background-color: Black; /*color: #a5db30;*/ color: White; padding-bottom: 5px; padding-right: 9px; border-bottom:1px solid #a5db30; line-height: 26px; margin-left: 12px; } I can use the first tag perfectly and create a new paragraph by adding a unch of <br/>'s to create the paragraph. Just wondered if there was something else I could do to avoid this method, hence me trying to use the <p> format. Can you guys please assist. Many Thanks in Advance, Ren
December 29, 200817 yr hi this got any thing to do with the request for help on my classifieds if so i have answerd that question just http://www.webdesignerforum.co.uk/index.ph...mp;#entry102267 any problems pm me good luck
December 29, 200817 yr Author hi this got any thing to do with the request for help on my classifieds if so i have answerd that question just http://www.webdesignerforum.co.uk/index.ph...mp;#entry102267 any problems pm me good luck Hey Elite, No, this is another problem that seems to be kicking my butt!
December 29, 200817 yr Do you have a link to the actual site as it would be easier to figure out if we can see the site in action
December 29, 200817 yr I'm not the greatest on CSS, but a paragraph is a block element, while a span is an inline element. You could try adding 'display:block;' to the CSS for the span and 'display:inline;' to the CSS for the paragraph. I think that will either reverse their appearance or demonstrate that it's time I went to bed.
December 29, 200817 yr Author Do you have a link to the actual site as it would be easier to figure out if we can see the site in action Hey Dizi, Thanks for showing interest in my problem, unfortunately I do not have this layout on my live site yet as it is still under cconstruction, are there any other details that you wouldd like to know?
Create an account or sign in to comment