HomeLatest ThreadsGreatest ThreadsForums & GroupsMy SubscriptionsMy Posts
DU Home » Latest Threads » Forums & Groups » Main » Community Help (Forum) » Question about code

Thu Jan 19, 2017, 09:06 PM

Question about code

I'm trying to reformat the Top 10 so it's easier to read, and I was wondering how do you get the stylized block quote like in the Hate Mailbag? Is it HTML code or is it more advanced DU code?

http://www.democraticunderground.com/?com=view_post&forum=1002&pid=8465045

2 replies, 1778 views

Reply to this thread

Back to top Alert abuse

Always highlight: 10 newest replies | Replies posted after I mark a forum
Replies to this discussion thread
Arrow 2 replies Author Time Post
Reply Question about code (Original post)
Initech Jan 2017 OP
Control-Z Jan 2017 #1
Make7 Jan 2017 #2

Response to Initech (Original post)

Thu Jan 19, 2017, 10:06 PM

1. You won't get the rounded corners

but if you highlight your text/paragraph and click on excerpt (right below the reply title - above the message text box) you'll get this:

I'm trying to reformat the Top 10 so it's easier to read, and I was wondering how do you get the stylized block quote like in the Hate Mailbag? Is it HTML code or is it more advanced DU code?I'm trying to reformat the Top 10 so it's easier to read, and I was wondering how do you get the stylized block quote like in the HateI'm trying to reformat the Top 10 so it's easier to read, and I was wondering how do you get the stylized block quote like in the Hate Mailbag? Is it HTML code or is it more advanced DU code? Mailbag? Is it HTML code or is it more advanced DU code?I'm trying to reformat the Top 10 so it's easier to read, and I was wondering how do you get the stylized block quote like in the Hate Mailbag? Is it HTML code or is it more advanced DU code?

Reply to this post

Back to top Alert abuse Link here Permalink


Response to Initech (Original post)

Fri Jan 20, 2017, 01:32 AM

2. The actual code being used is called CSS.

That stands for Cascading Style Sheets - an evolution in web programming to make formatting things more flexible and independent of the content. Here is the code EarlG is using:

[div class="excerpt" style="margin-right:3px; border:1px solid #bfbfbf; border-radius:0.4615em; box-shadow:-1px -1px 3px #bfbfbf inset;"][div style="padding: 20px; background-color: #f6f6f6; border-radius: 10px; box-shadow: 0px 2px 4px 1px #aaa;"][div style="font-family: arial, helvetica; color: #e60000; font-weight: bold; border-bottom: 1px dotted #999; padding-bottom: 10px;"]HEADING HERE[/div][br]Body text here[/div]

You can copy that and just replace the two text sections (HEADING HERE and Body text here) with whatever content you are using. There are lots of possibilities to tailor the presentation of text here using inline CSS - usually if you can describe what you want to do, someone will come along to try and help you figure out what code to use.

Reply to this post

Back to top Alert abuse Link here Permalink

Reply to this thread