Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
Old 05-24-2007, 06:52 PM Constraining Code
Novice Talker

Posts: 7
Name: Adam
Trades: 0
I need a code that will keep text constrained to a certain box. What is this called, and where can I find one?
AperNature is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 05-24-2007, 08:23 PM Re: Constraining Code
blue-dreamer's Avatar
King Spam Talker

Posts: 1,222
Location: Middle England
Trades: 0
here's a simple way of doing it....

<div class="mybox">
<p>My text and content goes here...</p>
</div>

Then the basic CSS...

.mybox {
width: 50% /* alter to your width*/
}
blue-dreamer is offline
Reply With Quote
View Public Profile
 
Old 05-24-2007, 08:43 PM Re: Constraining Code
Novice Talker

Posts: 7
Name: Adam
Trades: 0
Quote:
Originally Posted by blue-dreamer View Post
here's a simple way of doing it....

<div class="mybox">
<p>My text and content goes here...</p>
</div>

Then the basic CSS...

.mybox {
width: 50% /* alter to your width*/
}
So, what would the final code be?
AperNature is offline
Reply With Quote
View Public Profile
 
Old 05-25-2007, 10:33 AM Re: Constraining Code
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
He gave it to you ! Put the text inside the <div>, give the <div> a width and put your text inside the div, your text will be constrained inside the <div>.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 05-25-2007, 07:10 PM Re: Constraining Code
Novice Talker

Posts: 7
Name: Adam
Trades: 0
Quote:
Originally Posted by LadynRed View Post
He gave it to you ! Put the text inside the <div>, give the <div> a width and put your text inside the div, your text will be constrained inside the <div>.
Sorry, it's just that I'm not very good at code.

I need the text to be over an image, and I need the width to be 234 pixels. I can't figure out how to get that to work. Any help?
AperNature is offline
Reply With Quote
View Public Profile
 
Old 05-25-2007, 07:31 PM Re: Constraining Code
DesignQuote.Net's Avatar
Experienced Talker

Posts: 37
Name: Wes
Location: Atlanta
Trades: 0
.mybox {
width: 234px;
background-image:url('/images/somedumbbackgroundtile.jpg')
}
__________________
- Webmaster Wes
__________________________________________________ __________________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
DesignQuote.Net is offline
Reply With Quote
View Public Profile Visit DesignQuote.Net's homepage!
 
Old 05-25-2007, 08:58 PM Re: Constraining Code
Novice Talker

Posts: 7
Name: Adam
Trades: 0
Quote:
Originally Posted by DesignQuote.Net View Post
.mybox {
width: 234px;
background-image:url('/images/somedumbbackgroundtile.jpg')
}
Where does the .mybox go in the code?
AperNature is offline
Reply With Quote
View Public Profile
 
Old 05-26-2007, 04:51 PM Re: Constraining Code
Novice Talker

Posts: 7
Name: Adam
Trades: 0
Bump!
AperNature is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Constraining Code
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.28024 seconds with 12 queries