Solved

increse line height in a list

Posted on 2013-06-21
10
243 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
Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

 
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
 
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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

As a result of several questions about how to use Bootstrap I thought it would be a good idea to write down the development aspect of creating a Bootstrapped website in as little time as possible. Part 1 of this article will only concentrate on g…
Styling your websites can become very complex. Here I'll show how SASS can help you better organize, maintain and reuse your CSS code.
In this Micro Tutorial viewers will learn how to create a CSS image sprite (In a later tutorial, viewers will learn how to use CSS and HTML to create a navigation menu using this sprite) Open a new Photoshop document with a width of (Icon width)x(N…
In this tutorial viewers will learn how to style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …

786 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