Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Paragraph-ing

Featured Replies

Hey All,

 

Hope everyone had a great Christmas and now looking forward to the great New Years party :drinks:

 

Please take a look at the following screenshot.post-8970-1230580811_thumb.png

 

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

  • 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! :santa_sad:

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 :)

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.

  • 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?

What are you trying to achieve exactly, cos I'm confused?

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.