Solved

HTML5 Page Layour

Posted on 2014-12-08
5
76 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
Comment Utility
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
Comment Utility
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
Comment Utility
					<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
Comment Utility
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
Comment Utility
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
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 elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…
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…

772 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

10 Experts available now in Live!

Get 1:1 Help Now