Solved

increse line height in a list

Posted on 2013-06-21
10
240 Views
Last Modified: 2013-06-21
I have a styled list on this page that is styled from an external style sheet
I want to increase the line height in this page, but not the style sheet.
Other pages are styled with external style sheet
How can i do this?
The page:
http://roofgenius.com/RoofCalcWriter/test.asp
0
Comment
Question by:isnoend2001
  • 4
  • 4
  • 2
10 Comments
 
LVL 58

Expert Comment

by:Gary
ID: 39266657
The line-height on everything or just the lists
0
 

Author Comment

by:isnoend2001
ID: 39266695
just the center list
0
 
LVL 52

Expert Comment

by:Scott Fell, EE MVE
ID: 39266703
Where you have

.speciallist li {
font: 13px/18px Verdana, Geneva, sans-serif;
color: #000;
line-height: 30px;
padding-left: 25px;
list-style-type: none;
background: url(images/bullet_ball_blue.gif) no-repeat left 2px;
}

Just change the line hight to any number. Here I changed it to 30.
0
 
LVL 58

Expert Comment

by:Gary
ID: 39266723
Padas is right for the class but somewhere in the body of that page add

<style type="text/css">
.speciallist li {
line-height:25px
}
</style>

Open in new window

0
 

Author Comment

by:isnoend2001
ID: 39266760
I added this to the head and it made no difference:

<style type= "text/css">
.speciallist li{
line-height: 40px;
}
</style>
0
What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 
LVL 58

Expert Comment

by:Gary
ID: 39266768
If in the head then it needs to be below the stylesheet roof.css
You have just above that line.
0
 

Author Comment

by:isnoend2001
ID: 39266804
I moved it below the roof.css but it made no difference.
Seems it needs the !important tag to work, but the bullets do not line correctly
0
 
LVL 52

Assisted Solution

by:Scott Fell, EE MVE
Scott Fell,  EE MVE earned 250 total points
ID: 39266855
Try adding background-position-y: 8px;

.speciallist li {
font: 13px/18px Verdana, Geneva, sans-serif;
color: #000;
line-height: 30px;
padding-left: 25px;
list-style-type: none;
background: url(images/bullet_ball_blue.gif) no-repeat left 8px 2px;

}
0
 
LVL 58

Accepted Solution

by:
Gary earned 250 total points
ID: 39266933
You can remove the !important and change the class to
section_area .middlepanel .speciallist li
(if you want) the main class was still overriding as it was nested deeper
Add padas background style to that style block as well.
0
 

Author Closing Comment

by:isnoend2001
ID: 39267039
thanks guys learned something new about putting the page declaration after the reference to the style sheet
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Basic CSS issues 24 35
Custom CSS for Bootstrap Nav Bar 3 33
Remove 'disabled' attribute 6 28
Modify Table Width 6 15
Creating a CSS block that only applies to printing By default, all of your CSS applies to every possible view of your page - whether on screen, printed, landscape, touch-screen, or whatever.  You can, however, add CSS that only applies under certai…
Browsers only know CSS so your awesome SASS code needs to be translated into normal CSS. Here I'll try to explain what you should aim for in order to take full advantage of SASS.
In this Micro Tutorial users will learn how to embed custom fonts into websites using @font-face in CSS Select a font: Ensure the EULA allows you to use @font-face: Download the font: Get the browser-compatible files you need: Edit your CSS       - Name …
In this tutorial viewers will learn how to style transparent/translucent elements using alpha transparency in CSS Start with a normal styled element, such as a div.: Define its "background-color" property as "rgba (255, 255, 255, .5): The numbers in…

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now