text inside a frame html

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
terrenuit
Forum Commoner
Posts: 53
Joined: Tue Jul 08, 2014 2:18 pm

text inside a frame html

Post by terrenuit »

Hi,
I want to show a text on my website, this text will be Inside a frame(one line),
I put <textarea COLS=120 ROWS=8 ></textarea>, but it is no good,
do anybody give me an idea ?
User avatar
Celauran
Moderator
Posts: 6427
Joined: Tue Nov 09, 2010 2:39 pm
Location: Montreal, Canada

Re: text inside a frame html

Post by Celauran »

Not entirely sure what you mean by inside a frame. Does this text serve any special function or is it simply being displayed? The element you use should really be dictated by the role of what's being displayed and then use CSS to style it however you like. Are you talking about an iframe or more something like this? http://getbootstrap.com/components/#wells
terrenuit
Forum Commoner
Posts: 53
Joined: Tue Jul 08, 2014 2:18 pm

Re: text inside a frame html

Post by terrenuit »

like your link
it displays "Look, I'm in a well! " is in a frame,
how to do it in html ?
thanks
User avatar
Celauran
Moderator
Posts: 6427
Joined: Tue Nov 09, 2010 2:39 pm
Location: Montreal, Canada

Re: text inside a frame html

Post by Celauran »

That's done with CSS.

Code: Select all

<div class="well">Text goes here</div>

Code: Select all

.well {
    min-height: 20px;
    padding: 19px;
    background-color: #F5F5F5;
    border: 1px solid #E3E3E3;
    border-radius: 4px;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05) inset;
}
terrenuit
Forum Commoner
Posts: 53
Joined: Tue Jul 08, 2014 2:18 pm

Re: text inside a frame html

Post by terrenuit »

thanks a lot, I used the WordPress to create my website, I d'ont know where will I put your CSS stylesheet ?
User avatar
Celauran
Moderator
Posts: 6427
Joined: Tue Nov 09, 2010 2:39 pm
Location: Montreal, Canada

Re: text inside a frame html

Post by Celauran »

style.css in your theme's directory, so wp-content/themes/<theme name>/style.css
terrenuit
Forum Commoner
Posts: 53
Joined: Tue Jul 08, 2014 2:18 pm

Re: text inside a frame html

Post by terrenuit »

thank you very much
Post Reply