Question: Hello there I try to align some text in a container to the left but it won't work even when there is free space. As you can see there is some free space directly next to the image which isn't used for no reason. Right here I show you a picture and also the style. Thanks in advance if anyone can help.

![enter image description here](https://i.stack.imgur.com/DTEG9.png)

```css
.text-wrapper-overview {
  position: inherit;
  left: 100px;
  width: 65%;
}

.user-name {
  position: inherit;
  margin: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: large;
  font-weight: bold;
}

.last-message {
  position: inherit;
  height: 20px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 5px;
  font-size: small;
}

.timestamp-overview {
  position: inherit;
  margin: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: small;
  font-weight: normal;
}
```

```html
<div id={this.name} className="chat-overview" onClick={()=>this.renderChat()}>
  <img className="round-image" src="https://i.pravatar.cc/200"></img>
  <div className="text-wrapper-overview">
    <p className="user-name">{this.name}</p>
    <p className="last-message">{this.lastMessage.text}</p>
    <p className="timestamp-overview">{this.lastDate}</p>
  </div>
  <div className="notification">10+</div>
</div>
```

Answer: 
You could use interfaces with default implementations which were introduced in C# 8. Then you could derive from these interfaces.

Here's an example of how you could you provide default implementations for the `MoveForward()` and `StartBroadcast()` methods:

```cs
public interface IVehicle
{
    void MoveForward()
    {
        // your code
    }
    void PerformUniqueAbility();
}

```

```cs
public interface IRadioSignalBroadcaster
{
    void StartBroadcast()
    {
        // your code
    }
    void PerformUniqueBroadcastingAbility();
}

```
You can't inherit more than 1 class but you can inherit more than one interface. Is this what you are looking for?

```
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp3
{
    internal class Program
    {
        static void Main(string[] args)
        {
            IVehicle vehicle = new Vehicle();
            IRadioBroadcaster broadcaster = new RadioBroadcaster();

            vehicle.MoveForward();
            vehicle.PerformUniqueAbility();
            broadcaster.StartBroadcast();
            broadcaster.PerformUniqueAbility();
        }
    }

    public interface IUniqueAbillity
    {
        void PerformUniqueAbility();
    }

    public interface IVehicle: IUniqueAbillity
    {
        void MoveForward();
    }

    public interface IRadioBroadcaster : IUniqueAbillity
    {
        void StartBroadcast();
    }

    public abstract class RealWorldObject : IVehicle, IRadioBroadcaster
    {
        public void MoveForward()
        {
            // Move forward
        }

        public abstract void PerformUniqueAbility();

        public void StartBroadcast()
        {
            // Start broadcast
        }
    }

    public class Vehicle : RealWorldObject, IVehicle
    {
        public override void PerformUniqueAbility()
        {
            // Do something
        }
    }

    public class RadioBroadcaster : RealWorldObject, IRadioBroadcaster
    {
        public override void PerformUniqueAbility()
        {
            // Do something
        }
    }
}

```