Solved

HTML5 Page Layour

Posted on 2014-12-08
5
82 Views
Last Modified: 2014-12-26
Hi Experts,

Appologies if this is a simple question but a newbiew here:-

I have a webpage (attached) from a template. I am trying to format the contact Page so i can have:

Contact Information:-

Telephone:
UK - 01234 567890,
UAE - 01234 567890
USA - 01234 567890

Email:  
Information - info@test.com
sales - info@test.com
 
UK Head Office:
Street 1, Road 1, A Town, Manchester, Englerland, AB12 3CD

UAE Head Office:
Street 1, Road 1, A Town, Manchester, Englerland, AB12 3CD

USA Head Office:
Street 1, Road 1, A Town, Manchester, Englerland, AB12 3CD

But i just cant figureout how to format it right, it goes all over the place.

Anybody able to Help?

Cheers
TME
Test.zip
0
Comment
Question by:TrustGroup-UAE
  • 3
  • 2
5 Comments
 
LVL 58

Expert Comment

by:Gary
ID: 40487202
Seperate each row and use rowspan for section heading e.g.
<tr>
<td rowspan="3">Telephone:</td>
<td>UK: 01234 567890</td>
</tr>
<tr>
<td>UAE: 01234 567890</td>
</tr>
<tr>
<td>USA: 01234 567890</td>
</tr>

Open in new window


Follow the same logic for the rest, but you shouldn't be using tables for this.
0
 
LVL 1

Author Comment

by:TrustGroup-UAE
ID: 40488368
Hi Gary,

Thanks for you response:)

I have now modified as per your suggestion but it now shows like:-

Telephone: UK: 01234
                            567890
                    UAE: 01234
                            567890
                    USA: 01234
                            567890

I would like the Number to be on the same line (As apposed to spanning 2 Lines) and display like:

Telephone:   UK: 01234 567890
                     UAE: 01234 567890
                     USA: 01234  567890
 
Many Thanks for any Help in Advance.

Cheers
TME
0
 
LVL 58

Expert Comment

by:Gary
ID: 40489962
					<table border='0' style="width:100%">
						<tr>
							<td rowspan="3">Telephone:</td>
							<td>UK: 01234 567890</td></tr>
                            <tr><td>UAE: 01234 567890</td></tr>
                            <tr><td>USA: 01234 567890</td></tr>
						<tr>
							<td>Email: </td>
							<td>info@gbs-europe.com</td>
						</tr>
						<tr>
							<td>UK Head Office:</td>
							<td>Street 1, Road 1, A Town, Manchester, Englerland, AB12 3CD</td>
							</tr>
                            <tr><td>UAE Head Office:</td>
							<td>Street 1, Road 1, A Town, Manchester, Englerland, AB12 3CD</td>
							</tr>
                            <tr><td>USA Head Office:</td>
							<td>Street 1, Road 1, A Town, Manchester, Englerland, AB12 3CD</td>
						</tr>
					</table>

Open in new window

0
 
LVL 1

Author Comment

by:TrustGroup-UAE
ID: 40490588
Hi Gary,

Many Thanks for your continued support.

Its looking much better now! Only problem now is, there is a space between all the phone numbers:-

Telephone:              UK: 01234 567890
                       
                               UAE: 01234 567890

                               USA: 01234 567890

How can i get it to align like:-

Telephone:              UK: 01234 567890
                               UAE: 01234 567890
                               USA: 01234 567890

Cheers Again
TME
0
 
LVL 58

Accepted Solution

by:
Gary earned 500 total points
ID: 40492681
Because you have this
.contact-sidebar td {
    height: 45px; // << this
    width: 110px;
}

Open in new window


If you remove the height and want space between each section then add an empty row between them
   <tr><td>&nbsp;</td></tr>
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
how to debug htl and js pages 8 38
.htaccess css/images no longer loading 4 35
HTML Anchor Link Problem 3 35
2 separate CSS animations 2 16
This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
In this tutorial viewers will learn how to embed an audio file in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display (CODE) HTML5 is supported by the most recent versions of all major browsers…
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…

789 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question