Solved

HTML5 Page Layour

Posted on 2014-12-08
5
79 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

This is a PowerShell web interface I use to manage some task as a network administrator. Clicking an action button on the left frame will display a form in the middle frame to input some data in textboxes, process this data in PowerShell and display…
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
In this tutorial viewers will learn how to style rounded corners for elements in CSS using the border-radius property Begin with a normal styled element such as a div: To style all four corners of the div to be the same degree of roundness, use the …
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.

910 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now