1. Table chart - Align from center to the left / 2. Center text on phone and iPad only

edited June 2017 in Theme support
Hi!

I have 2 issues that I can't seem to solve. 

1.) How do I align the text on this table to the left, instead of the default center?
See the pic that all the texts are aligned to the center, but I want everything to align to the left.
image

here is my current code:



<table> 
   <thead>
<tr> 
<th>Råvaror</th> 
<th>Vikt</th> 
<th>Näringsvärde per 100g</th>
<th></th>
</tr>
   </thead> 

     <tbody> <tr> 

<td>Mjöl</td> 
<td>13,55</td> 
<td>Energi kJ</td> 
<td>898 kJ</td> </tr> </tbody> 

     <tbody> <tr> 

<td>Bagerisikt</td> 
<td>3</td> 
<td>Energi kcal</td> 
<td>212 kJ</td> </tr></tbody> 

<td>Jäst</td> 
<td>0,6</td> 
<td>Fett g</td> 
<td>1 g</td> </tr></tbody> 

<td>Sirap mörk</td> 
<td>3</td> 
<td style="font-weight: 100; font-size: 12px;">varav mättat g</td> 
<td>0,2 g</td> </tr></tbody> 

<td>Lingonsylt</td> 
<td>2,6</td> 
<td>Kolhydrater g</td> 
<td>44 g</td> </tr></tbody> 

<td>Malt och vört</td> 
<td>1,34</td> 
<td style="font-weight: 100; font-size: 12px;">varav sockerarter g</td> 
<td>10 g</td> </tr></tbody> 

<td>Anis och fänkål</td> 
<td>0,08</td> 
<td>Kostfibrer g</td> 
<td>2 g</td> </tr></tbody> 

<td>Vatten</td> 
<td>8,65</td> 
<td>Protein g</td> 
<td>5,8 g</td> </tr></tbody> 

<td></td> 
<td></td> 
<td>Salt g</td> 
<td>0,66 g</td> </tr></tbody> 

<td></td> 
<td></td> 
<td>Vattenhalt g</td> 
<td>39 g</td> </tr></tbody> 

</table>


-----------------------------------------------------------------------

2.) How do I center these 2 text columns so that they are centered ONLY on iPads, etc and phone? As you can see it looks good on the computer version, but it looks kinda weird when i change to iPad and mobile. Is it possible to make then "centered" instead of right and left when on iPad and phone devices?

Here are some screens: First is Laptop, second is iPad and the last is phone.

imageimageimage


Thx a mill!!

Comments

Sign In or Register to comment.
This website uses cookies

We use cookies to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners who may combine it with other information that you’ve provided to them or that they’ve collected from your use of their services.

Cookies are small text files that can be used by websites to make a user's experience more efficient.

The law states that we can store cookies on your device if they are strictly necessary for the operation of this site. For all other types of cookies we need your permission. This means that cookies which are categorized as necessary, are processed based on GDPR Art. 6 (1) (f). All other cookies, meaning those from the categories preferences and marketing, are processed based on GDPR Art. 6 (1) (a) GDPR.

This site uses different types of cookies. Some cookies are placed by third party services that appear on our pages.

You can at any time change or withdraw your consent from the Cookie Declaration on our website.

Learn more about who we are, how you can contact us and how we process personal data in our Privacy Policy.

Please state your consent ID and date when you contact us regarding your consent.