TonyReba
asked on
Css style paragraphs
I am working in an online agreement form. But I was wondering how can I style the text inside the scrollable div that i have to have bold - highlighted each section title, and bold only subsections. My knowledge to css is pretty low so Hope someone can help me here, (dont want to apply online style to each text...
something like dream weaver agreement text.. see screen shot
sampleformat.png
something like dream weaver agreement text.. see screen shot
sampleformat.png
TonyReba, do You have any piece of code to post here to see what have You got so far?
Regards
Regards
I've attached a sample for you.
Basically what you need to do to get the scrollbar going is:
1) Use a div and set the height of the div, then add the style overflow: scroll. e.g. <div class=".." style="height:600px;overfl ow:scroll" >
2) To get an item to be bold, you need to set it's font-weight style. E.g. font-weight: bold;
See the attached for the example.
tmp.html
Basically what you need to do to get the scrollbar going is:
1) Use a div and set the height of the div, then add the style overflow: scroll. e.g. <div class=".." style="height:600px;overfl
2) To get an item to be bold, you need to set it's font-weight style. E.g. font-weight: bold;
See the attached for the example.
tmp.html
Try this code:
<style>
.contentBox {
display:block;
border-width: 1px;
border-style: solid;
border-color: 000;
padding:5px;
margin-top:5px;
width:200px;
height:50px;
overflow:scroll
}
</style>
<div class="contentBox">
Add the text for the content here.
</div>
ASKER
hi guys , thanks for the feedback so far, I do have the scrolable text but I want to avoid inline styling each section via css
here isa piece of my code
here isa piece of my code
<div style="overflow:auto; height:450px; width:600px;" id="Agreement_Text">
<span style="text-decoration: underline"><b>
1. Effective Date and Acceptance Date</b></span>
<br />
The effective date of this Mutual
Agreement to Arbitrate Claims (“Agreement”) is August 1, 2010. If Claimant
receives notice of this Agreement prior to commencing work at Company,
Claimant’s commencement of work at Company shall constitute acceptance of the
terms and conditions of this Agreement. In that situation, the date of
Claimant’s commencement of work shall be the acceptance date. For any other
Claimant, Claimant’s continuation of work at Company after three days have
passed from the date Claimant receives notice of this Agreement shall constitute
acceptance of the terms and conditions of this Agreement. In that situation, the
fourth day after receipt of this notice shall be the acceptance date.
<br />
<br />
For Claimants who commence or continue employment at Company as of their respective
acceptance date, Company and Claimant mutually agree to resolve Covered Claims
which occur on or after the effective date according to the terms and conditions
of this Agreement.
<br />
<br />
<span style="text-decoration: underline"><b>
2. Definitions
<br />
Add this to your stylesheet:
:scroll {
color: rgb(255, 0, 102);
font-weight: bold;
}
And the Attatched where the text goes. Replace the text
:scroll {
color: rgb(255, 0, 102);
font-weight: bold;
}
And the Attatched where the text goes. Replace the text
<div id="scroll"><span style="text-decoration: underline"><b>
1. Effective Date and Acceptance Date</b></span>
<br />
The effective date of this Mutual
Agreement to Arbitrate Claims (“Agreement”) is August 1, 2010. If Claimant
receives notice of this Agreement prior to commencing work at Company,
Claimant’s commencement of work at Company shall constitute acceptance of the
terms and conditions of this Agreement. In that situation, the date of
Claimant’s commencement of work shall be the acceptance date. For any other
Claimant, Claimant’s continuation of work at Company after three days have
passed from the date Claimant receives notice of this Agreement shall constitute
acceptance of the terms and conditions of this Agreement. In that situation, the
fourth day after receipt of this notice shall be the acceptance date.
</div>
Hold on, I messed that up.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
You may need to add some padding to this, if so just add it on a line before the float:
There are many examples of this available on the web:
http://www.domedia.org/oveklykken/css-div-scroll.php
http://www.dynamicdrive.com/dynamicindex11/scrollc.htm