Carlos Morales
Carlos Morales

Reputation: 1149

Issue using width in css custom

I created a invoice table

but on the top where it says:

RUC N° 20516223163
     INVOICE
  N° 001- 0004

Is not showing in the middle and more bigger to the left because this is taking 2 spaces

<th class="smal"colspan="2">DESCRIPTION</th>

Here is the demo:

http://jsfiddle.net/g78q9/27/

I'm doing this imageenter image description here

Please somebody can help me?

Upvotes: 0

Views: 49

Answers (2)

LcSalazar
LcSalazar

Reputation: 16841

If I understood what you want, try this changes:

Increase your colspans by "1" on the trick td, and on all Descriptions tds.

Also, to prevent the Nº of breaking to the next line, add white-space: nowrap the the td.trick class.

Here's the updated fiddle: http://jsfiddle.net/g78q9/29/

Upvotes: 2

MickyScion
MickyScion

Reputation: 516

in your td css you have to change to % not px

td.trick {
  width: 40%;

you have to change like this and it will show like you want, hope helped you :-D

Upvotes: 2

Related Questions