html – Code for car sales platform designed with flexbox in HTML5

This is intended as a simple layout for an auto showroom site:

Disclaimer Details changed from original for privacy

body {
font-family: Helvetica, sans-serif;
background-color: #B2BEB5;
}

b {
font-family: Helvetica, sans-serif;
}

h1, h2, h3, h4, h5, h6 {
font-family: Helvetica, sans-serif;
}

header.brandname {
background-color: #333;
color: #FFF;
padding: 20px;
}

.dublin-ac1 {
background-color: #FFF;
font-family: Verdana, sans-serif;
color: red;
}


.flex-container {
font-family: Arial, sans-serif;
font-size: 14px;
line-height: 16px;
}

.flex-container h2, h3, h4 {
font-family: Arial, sans-serif;
}

.flex-container {
    color: #333;
    display: flex;
    flex-direction: row;
    width: 880px;
    padding: 20px;

}
.flex-left {
width: 195%;   
padding: 10px;
margin-top: -30px;
}

.flex-right {
width: 95%;
text-align: right;
padding: 10px;
margin-top: -30px;
}

.flex-left1 {
width: 50%;
margin-top: -50px;
}

.flex-left1 img {
max-width:100%;
max-height:100%;
}

.flex-right1 {
width: 90%;
margin-left: 10px;
margin-top: -70px;
margin-bottom: auto;
}

.az2 {
background-color: #FFFFFF;
margin: 30px;
margin-bottom: 20px;
margin-right: 130px;
width: 920px;
border: 2px solid;
height: auto;
}

.price {
font-weight: 700;
}


section.dublinvehicles {
background-color: #FFF;
margin-left: 20px;
height: auto;
padding: 15px;
}

/* 
div.image-card-thumbnails {
display: flex;
position: relative;
flex-direction: column;
flex-grow: 1;
max-width: 60%;
}
 */

div.image-card-thumbnails {
width: 300px;
display: flex;
flex-direction: column;
align-items: flex-start;
max-width: 34%;
}

.image-card-thumbnails img {
max-width: 90%;
max-height: 33%;
}

div.image-card-thumbnails-1 {
display: flex;
flex-direction: row;
max-width: 34%;
object-fit: contain;
}
.image-card-thumbnails-1 img {
max-width: 90%;
max-height: 33%;
}
.aw1 {
width: 230px;
object-fit: cover;
position: absolute;
bottom: -10px;
margin-left: -320px;
margin-bottom: 80px;
}
<header class="brandname">
<h1>NEW DUBLIN CAR SALES</h1>
</header>

<article class="dublin-ac1">
<h3>26 North Belfast Road, Dublin 11</h3>
<h3>Tel: 086 000 0000</h3>
</article>

<section class="dublinvehicles">
<h3>20 minutes from Dublin town centre</h3>

<article class="az2">
<div class="flex-container">
    <div class="flex-left">
       <h3>2021 TOYOTA RAV4 2.5 HYBRID PREMIUM 5dr</h3>
    </div>
    <div class="flex-right price">
       <h3>€38,000 / £30,400</h3>
    </div>
</div>
<div class="flex-container">
    <div class="flex-left1">
       <img src="https://upload.wikimedia.org/wikipedia/commons/thumb/3/39/2019_Toyota_RAV4_Excel_HEV_CVT_2.5_Front.jpg/1280px-2019_Toyota_RAV4_Excel_HEV_CVT_2.5_Front.jpg">
        <div class="image-card-thumbnails">
       <img src="https://upload.wikimedia.org/wikipedia/commons/thumb/a/a8/2019_Toyota_RAV4_Hybrid_01.jpg/1024px-2019_Toyota_RAV4_Hybrid_01.jpg">
       <img src="https://upload.wikimedia.org/wikipedia/commons/thumb/5/50/2019_Toyota_RAV4_hybrid_in_Taiwan_taxi_service.jpg/1024px-2019_Toyota_RAV4_hybrid_in_Taiwan_taxi_service.jpg">
       <img src="https://upload.wikimedia.org/wikipedia/commons/thumb/d/d5/2020_Toyota_Rav4_XLE%2C_Front_Left%2C_09-30-2020.jpg/1280px-2020_Toyota_Rav4_XLE%2C_Front_Left%2C_09-30-2020.jpg">
       </div>
    </div>
    <div class="flex-right1">
    <p>5 door, choice of colours, well-equipped, ONLY 20 LEFT</p>
</div>
</article>

<article class="az2">
<div class="flex-container">
    <div class="flex-left">
       <h3>2012 PEUGEOT 207 1.4 VTi COMFORT 4dr</h3>
    </div>
    <div class="flex-right price">
       <h3>€1,744/£1,395</h3>
    </div>
</div>
<div class="flex-container">
    <div class="flex-left1">
       <img src="https://upload.wikimedia.org/wikipedia/commons/thumb/7/74/Peugeot_207_CN_sedan_2_China_2012-05-13.jpg/1024px-Peugeot_207_CN_sedan_2_China_2012-05-13.jpg">
    </div>
    <div class="flex-right1">
    <p>4 door, maroon, 120,000 km, NCT, good condition</p>
    </div>
</div>
</article>

<article class="az2">
<div class="flex-container">
    <div class="flex-left">
       <h3>1991/1992/1993 TOYOTA HIACE 3.0 DIESEL VAN</h3>
    </div>
    <div class="flex-right price">
       <h3>€1,800 / £1,440</h3>
    </div>
</div>
<div class="flex-container">
    <div class="flex-left1">
       <img src="https://upload.wikimedia.org/wikipedia/commons/thumb/3/37/1998-2004_Toyota_HiAce_%28RZH103R%29_van_%282011-11-04%29.jpg/180px-1998-2004_Toyota_HiAce_%28RZH103R%29_van_%282011-11-04%29.jpg">
    </div>

    <div class="flex-right1">
    
    <p>white, choice of models</p>
<div class="aw1">
        <div class="image-card-thumbnails-1">
       <img src="https://upload.wikimedia.org/wikipedia/commons/thumb/9/92/GE-RZH125B-Kanachu-a13-Yumebus.jpg/800px-GE-RZH125B-Kanachu-a13-Yumebus.jpg">       
       <img src="https://upload.wikimedia.org/wikipedia/commons/thumb/1/15/KingTaxi_saga_44.jpg/1280px-KingTaxi_saga_44.jpg">  
       <img src="https://upload.wikimedia.org/wikipedia/commons/thumb/d/d0/1999_Toyota_HiAce_%28RZH103R%29_van_%2824567060179%29.jpg/1024px-1999_Toyota_HiAce_%28RZH103R%29_van_%2824567060179%29.jpg">  
       <img src="https://upload.wikimedia.org/wikipedia/commons/thumb/c/c9/Toyota_Hiace_%2825153414567%29.jpg/800px-Toyota_Hiace_%2825153414567%29.jpg">  
       </div>
        <div class="image-card-thumbnails-1">
       <img src="https://upload.wikimedia.org/wikipedia/commons/thumb/9/99/Toyota_Hiace_100_long_van_001.JPG/1024px-Toyota_Hiace_100_long_van_001.JPG">       
       <img src="https://upload.wikimedia.org/wikipedia/commons/thumb/9/99/Toyota_Hiace_100_long_van_001.JPG/1024px-Toyota_Hiace_100_long_van_001.JPG">  
       <img src="https://upload.wikimedia.org/wikipedia/commons/thumb/0/02/Toyota_Hiace_in_Ayutthaya.jpg/1024px-Toyota_Hiace_in_Ayutthaya.jpg">  
       <img src="https://upload.wikimedia.org/wikipedia/commons/thumb/3/3a/%2790-%2791_Toyota_HiAce.JPG/1024px-%2790-%2791_Toyota_HiAce.JPG">  
       </div>
    </div>
</div>
</article>

</section>

What I am looking for is constructive criticism on how to improve this code which is entirely written by hand, and is not copied from elsewhere. It’s taken inspiration from real-life car sales sites but is currently HTML-only, although it may be adapted for PHP MVCs model-view controllers.

Influence was taken from this design on autotrader.co.uk (but with my own coding).

I want to try and make a variant of my flexbox code that displays the photos (with a javascript to enlarge them) along the bottom and remains at the bottom even if div class=flex-right-1 extends due to a large amount of text in the box

So far, I’m just concentrating on the HTML side of things.

I am looking for any constructive criticism on this.

❕NEWS – Apple is interested in building Apple car | NewProxyLists

Apple, the tech giant that can only be rivaled by Microsoft, has invested both time and resources to make one of their dreams a reality. The company is interested to build Apple car, a concept of modern car that is still in designing phase. Just recently, Apple is in the talks with Kia Motors, a child company of Korean automotive giant Hyundai, to make Apple cars. And reportedly, both companies will seal the deal soon enough.

 

usb connection mode – android tv box in car

Dears

I have an android tv box runs at android 7 output comes via HDMI port.
I want to change or make a modification to this tv box and install android auto and connect it to my car usb instead of using my phone. Is it possible to make such a thing and how?

I am totally new in Android programming.

Best Regards

Ethernet Comms in a car. Using twisted pairs rather than cable?

I have a number of devices in a race car talking via Ethernet at 100M for Programme loading and comms between devices as an addition to the CAN network.

Currently i have used Cat6 cable between devices but these are bulky. So i would like to strip the sheath and the unused pairs out and leave the two pairs in use. This will allow these pairs to sit in the main wiring loom between devices. Maximum length would be 3m.

Any ideas if this would lead to an unreliable set of comms?

Cheers

Nev

car rentals – As a tourist in Canada: buy, borrow or rent a car?

With the Covid situation this is probably going to have to wait until 2022, but I can lay some groundwork for the preparations…

I’m trying to sort out my options for travel in Canada when my wife and me are finally able to go there for a big holiday, combined with family visits.
We are looking at 5 to 6 weeks in August/September, flying from the Netherlands to either Calgary or Vancouver, travel around by car and then returning from either the same city or from the other city.
We will be visiting relatives living in the Calgary, Prince George and Vancouver areas, staying a few days with each and traveling from hotel to hotel for the rest of the time.

As I see it there are basically 3 options to get a car in Canada:

  1. Rent a car. The most obvious solution.
  2. Buy on arrival, sell it on departure. Is this possible for Dutch tourists and how about insurance?
  3. Have a Canadian relative buy the car (we would cover the cost obviously) and borrow the car from him during our stay. Again: How about insurance and is it legally permitted for a Canadian to lend a privately owned car to a tourist?

Scenario 2 and 3 would most likely give us more options in choice of cars and would (apart from the insurance of which I have no idea) probably be cheaper as the car will be sold afterwards, recovering a large part of the purchase price.

Can anybody clarify if options 2 and 3 are viable at all in Canada?

P.S. My Dutch travel-insurance will cover accidents and liability if I drive a rental or a borrowed car in Canada (scenario 1 and 3). But it is unclear to me if that is sufficient to satisfy Canadian law.
My travel-insurance will not cover scenario 2. Any car owned by me needs to be insured on my regular car-insurance and that only accepts cars registered in the Netherlands.

Motors – Car Dealer and Rental, Classified WordPress theme

Motors for WordPress helps you create a feature packed website for any automotive and boat selling business, with 10+ stunning premade demos ready to fuel your success.
The prime objective of creating Motors for WordPress was to satisfy the automotive industry’s needs. Motors for WordPress does this in unique ways: Car Dealership Demo, Directory & Listings Demo, Car Repair/Mechanics Service Demo, Car Rental, Boat…

.

uk – How can I cross the English channel with a car?

To cross the Channel with a vehicle, you have two choices: ferry or train. The ferry costs less and takes longer, the train faster and more expensive. Folkestone is the departure point for the Eurotunnel train to Calais; the most popular ferry crossing is Dover-Calais.

Here’s an overview of some of the options:

To France, the choices are Dover–Dunkerque, Newhaven-Dieppe, Portsmouth to Le Havre, Caen, Cherbourg, or St Malo; Poole-Cherbourg, Plymouth-Roscoff.

The ferry route from England to Belgium is Hull-Zeebrugge. For the Netherlands, Hull-Rotterdam, Newcastle-IJmuiden, Harwich-Hoek van Holland.

As for convenience, that depends on where you start your journey and where you’re heading.

unity – How do I correct the turning effects on my car in order for it to turn properly?

In my game, I’m currently working on a Physics-based car driving game in Unity from scratch. My problem is that whenever I press the input controls used for turning, instead of turning, my car does barrel rolls in the air. I’m using a document written about Car Physics by Marco Monster to aid some of my calculations in this post. I’ve looked at my code and suspect that the problem lies within this segment of my code. Please provide any feedback as it would be greatly appreciated.

//This section relates to low-speed cornering, not really useful for drifting
            //This will determine the circle radius related to turning, in effect, calculating how much we turn
            R = L / Mathf.Sin(userRight);

            //Here, we calculate the vehicle's angular velocity in radians per second
            //Omega (fancy w) represents angular velocity
            // v represents velocity
            rb.angularVelocity = rb.velocity / R;

        //This section covers high-speed turning
            //This relates to the car
                //sideSlipAngle = Vector3.Angle(carTransform.forward, rb.velocity);
                sideSlipAngle = Mathf.Atan(rb.velocity.z / rb.velocity.x);

        //This relates to the wheels
        for(int i = 0; i < 4; i++)
        {
            //alpha represents the slip angle for each wheel
            alpha = Vector3.Angle(wheels(i).forward, rb.velocity);

            //this equation is an approxiamtion of values below the peak shown in the graph
            lateralForce = new Vector3(0f, 0f, corneringStiffness * alpha);

            //These values are supposed to represent the magnitudes of these velocities
            longVelocity = Mathf.Cos(alpha) * rb.velocity;
            latVelocity = Mathf.Sin(alpha) * rb.velocity;

            /*
                Remember that these forces are supposed to be acting upon the wheels themselves,
                so add rigidbodies accordingly
             */

            //The lateral velocity causes the cornering force to counteract it
                //This relates to only the front wheels
                frontSlipAngle = Mathf.Atan((latVelocity.magnitude + (rb.angularVelocity.magnitude * b)) / longVelocity.magnitude) - (userRight * Mathf.Sign(longVelocity.magnitude));
                for (i = 0; i < 2; i++)
                {
                    //Calculates the lateral force of the wheels
                    latFrontForce = lateralForce.normalized * (frontWeight.magnitude / 2f);
                    latFrontForce += latFrontForce;

                    corneringForce = latRearForce + Mathf.Cos(userRight) * latFrontForce;
                    lateralForce += latFrontForce;

                    frontTorque = Mathf.Cos(userRight) * latFrontForce * b;
                    //rb_wheels(i).AddForce(lateralForce);
                }

                centripedalForce = corneringForce;
                steeringRadius = centripedalForce.magnitude / (rb.mass * Mathf.Pow(rb.velocity.magnitude, 2f));
                

            //This relates to only the rear wheels
            rearSlipAngle = Mathf.Atan((latVelocity.magnitude - (rb.angularVelocity.magnitude * c)) / longVelocity.magnitude);
            for (i = 2; i < 4; i++)
            {
                //Calculates the lateral force of the wheels
                latRearForce = lateralForce.normalized * (backWeight.magnitude / 2f);

                latRearForce += latRearForce;
                lateralForce += latRearForce;

                rearTorque = -latRearForce * c;
                //rb_wheels(i).AddForce(lateralForce);
            }

        }

        totalTorque = frontTorque + rearTorque;
        rb.AddTorque(totalTorque);
```

car rentals – Taxi Transfers options in Montenegro

It takes only two hours to get to Montenegro from most of the European capitals. There are two international airports – in Podgorica (12 km from the city) and Tivat (4 km from the city centre).

With Go Montenegro, now you can book your taxi transfers from the Podgorica and Tivat airports in advance. Choose from a variety taxi transfers options that best suit your needs and enjoy a relaxing ride after your flight.

When travelling in a group, we offer comfortable mini vans for up to eight people or minibus for up to sixteen people, so that you can arrival at your booked hotel together with your luggage. With a modern mini van you have the ideal alternative to a taxi and can all ride together in the same vehicle.

We offer easy, great value airport and hotel transfers across the whole of Montenegro.

How the service works

1.
You choose the route and a car
You can order a car of any capacity — from a Standard for two to a 16-seater bus.

2.
Complete the booking form
and choose a payment method
Specify the pickup date and time and choose a payment method. After booking, you will receive an email with the voucher.

3.
The driver meets you
with a nameplate at the airport
At the right time, the driver will be waiting for you on-site. They will walk you to the car and take you to the hotel.

western europe – A little problem in European traffic rules: Priority of a car sitting on a “stepstone” island

Here is an intersection which always gives me trouble:

Image of an intersection

  • The usual continental European traffic rules apply;
  • There are two lanes which have right-of-way, one going towards the North-West, and one towards the South-East ;
  • There is a side-road coming in from the East (is a highway off-ramp, actually) and a side-road going to the West (a highway on-ramp)
  • In the picture, the light blue area cannot be used as it is a bus lane, but that is not important here.

If you have a car A driving along the red path, it may encounter heavy traffic on both NW and SE lanes. There is a little “stepstone island” in between the lanes so that you can proceed across the NW lane if it is free, then wait for the SE lane to clear.

While car A is waiting on the “stepstone”, a car B initially on the NW lane may wish to turn to its left in order to proceed West, then also wait for the SE lane to clear.

Once the SE lane is clear, you have to decide which of A and B goes first. I am of the impression that it should be B as B is coming off the lan which has right-of-way but apparently opinions on this diverge, leading to hesitancy.

Is there an applicable rule to decide who goes first without having to resort to casting dice?