capser capser - 1 month ago 7
CSS Question

HTML space before ul list

I am trying to get rid of the space between the last words "trading desks" and the first bullet point "With a background in Production Support". Yes i know there is a break tag there - however even when the break tag is not there, the space remains. For some reason without the break tag, the span tag will not italicize.



#title span {
font-size: 1.2em;
}
ul.bullet {
list-style-type: disc;
}
ul.subbullet {
list-style-type: circle;
}
span.bold {
font-weight: bold;
}
span.italic {
font-style: italic;
}

<p><span class="bold">UBS</span> 1285 Ave of Americas New York, New York 10006 07/14 - 05/16
<br />
<span class="bold">Trade Support Specialist</span><span class="italic"> Front office trade support for Cash Equities and Option trading desks.</span>
<br />
<ul>
<li> With a backgournd in Production Support and experience in Linux System Engineering, provide comprehensive Front Line Application support to Floor Traders.</li>
<li> Responsible for the maintenance, monitoring and permissioning of Order Entry, Vol discovery, Quoting and Hedging Applications. Provide Application Support for Middle Office jBoss and Tomcat Position Keeping Applicatons. Provide Applicaiton Support
for clearing applications which rely on Oracle and Sybase Databases </li>




Answer

You can use margin:auto on your p and ul tags (However I do recommend adding ids to these specific tags and styling)

css rule

ul,p{
margin:auto;
}

Snippet below without the break tag and margin:auto rule

#title span {
font-size: 1.2em;
}
ul.bullet {
list-style-type: disc;}
}
ul.subbullet{
list-style-type: circle;
}
span.bold {
font-weight: bold;
}
span.italic {
font-style: italic ;
}
li:first:child{
padding:0px;
}
ul,p{
margin:auto;
}
</style>
<p> <span class="bold">UBS</span> 1285 Ave of Americas New York, New York 10006                                                07/14 - 05/16<br />
<span class="bold">Trade Support Specialist</span><span class="italic"> Front office trade support for Cash Equities and Option trading desks.</span>
<ul>
<li>    With a backgournd in Production Support and experience in Linux System Engineering, provide comprehensive Front Line Application support to Floor Traders.</li>
<li>    Responsible for the maintenance, monitoring and permissioning of Order Entry, Vol discovery, Quoting and Hedging Applications. Provide Application Support for Middle Office jBoss and Tomcat Position Keeping Applicatons. Provide Applicaiton Support for clearing applications which rely on Oracle and Sybase Databases </li>