|
|
|
#1 |
|
Messages: n/a
Hébergeur: |
Hi,
I have created this page: http://www.turtonclientarea.co.uk/tu...ontact_us.html However there is an error in Firefox, the data is in split into two columns within a table in the centre of the page. But when viewed in FireFox on a PC the two column headers do not line up but they do in IE7. I have tried lots of options to try and get this working such as wrapping the text in a div and then applying a top margain to the div, but when I do this it lines up FireFox but not IE7! Therefore I can not find a cross browser solution. Can anyone me please, I'm sure the solution is simple enough I just don't know it. Thanks in advance |
|
|
|
#2 |
|
Messages: n/a
Hébergeur: |
Your Template is horked. You need to fix that before working on your
layout - <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <!-- InstanceBegin template="/Templates/turton.dwt" codeOutsideHTMLIsLocked="false" --> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <!-- InstanceBeginEditable name="header_tag" --> <title>Turton Middleton: Contact Us</title> <!-- InstanceEndEditable --><!-- InstanceBeginEditable name="header_region" --> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title>Turton Middleton: Contact Us</title> Note the two <head> tags, and the two <title> tags. Let's see the same part of your Template page's markup, please. For your layout, change this - <td height="400" width="428" align="left" valign="top" scope="col"> <p class="contact_us_text">Contact Us</p> to this - <td height="400" width="428" align="left" valign="top" scope="col"> <p class="contact_us_text" style="margin-top:0;">Contact Us</p> -- Murray --- ICQ 71997575 Adobe Community Expert (If you *MUST* email me, don't LAUGH when you do so!) ================== http://www.projectseven.com/go - DW FAQs, Tutorials & Resources http://www.dwfaq.com - DW FAQs, Tutorials & Resources ================== "shallowdeep" <webforumsuser@macromedia.com> wrote in message news:g2lk8i$ld3$1@forums.macromedia.com... > Hi, > > I have created this page: > > http://www.turtonclientarea.co.uk/tu...ontact_us.html > > However there is an error in Firefox, the data is in split into two > columns > within a table in the centre of the page. But when viewed in FireFox on a > PC > the two column headers do not line up but they do in IE7. I have tried > lots of > options to try and get this working such as wrapping the text in a div and > then > applying a top margain to the div, but when I do this it lines up FireFox > but > not IE7! Therefore I can not find a cross browser solution. > > Can anyone me please, I'm sure the solution is simple enough I just > don't > know it. > > Thanks in advance > |
|
|
|
#3 |
|
Messages: n/a
Hébergeur: |
Hi thanks for the response,
My template is here: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title>Untitled Document</title> <style type="text/css"> <!-- TemplateBeginEditable name="header_region" --> <!-- #container { height: 600px; width: 970px; margin-right: auto; margin-left: auto; } A { font-family:Arial, Helvetica, sans-serif; font-size:12px; text-decoration: none; color: #666666; } A:link { color:#666666; text-decoration: none; font-weight: normal; } A:visited { color: #666666; text-decoration: none; } A:hover { text-decoration: none; color: #ff0099; font-weight:normal; } A:active { color: #ff0099; text-decoration: none } #header { width: 850px; margin-right: auto; margin-left: auto; } #line { background-color: #CCCCCC; height: 1px; width: 850px; margin-bottom: 10px; } .nav_text { font-family: Arial, Helvetica, sans-serif; font-size: 12px; color: #666666; } .spacing { font-family: Arial, Helvetica, sans-serif; margin-right: 10px; word-spacing: 10pt; } #header_text { float: right; height: 45px; width: 300px; margin-top: -50px; } #squares { width: 73px; height: 36px; float: right; margin-top: -35px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; } .spacing_bottom { font-family: Arial, Helvetica, sans-serif; word-spacing: 2pt; } .number_text { font-family: Arial, Helvetica, sans-serif; font-size: 20px; color: #666666; } .email_text { font-family: Arial, Helvetica, sans-serif; font-size: 13px; font-weight: normal; color: #999999; text-decoration: none; } #nav { width: 850px; margin-right: auto; margin-left: auto; } #main_content { width: 850px; margin-right: auto; margin-left: auto; margin-top: 20px; } #i_love_image img { margin-right: auto; margin-left: auto; margin-top: 0px; height: 300px; width: 300px; } .brand_work_text { font-family: Arial, Helvetica, sans-serif; font-size: 18px; font-weight: bold; color: #006699; } .main_text { font-family: Arial, Helvetica, sans-serif; font-size: 14px; color: #666666; } .red_text { font-family: Arial, Helvetica, sans-serif; font-size: 14px; font-weight: normal; color: #ff0033; } #bottom_nav { font-family: Arial, Helvetica, sans-serif; width: 850px; margin-right: auto; margin-left: auto; height: 150px; color: #666666; font-size: 11px; font-weight: normal; } #line_2 { background-color: #CCCCCC; height: 1px; width: 850px; margin-top: 50px; margin-bottom: 10px; } <!-- TemplateEndEditable --> --> </style> </head> <body> I have incorrectly set up the editable regions? Cheers |
|
|
|
#4 |
|
Messages: n/a
Hébergeur: |
> I have incorrectly set up the editable regions?
I think so. Move it outside the <style> tags, e.g., change this - <style type="text/css"> <!-- TemplateBeginEditable name="header_region" --> .... <!-- TemplateEndEditable --> </style> to this - <!-- TemplateBeginEditable name="header_region" --> <style type="text/css"> .... </style> <!-- TemplateEndEditable --> and see if that s things in your child pages. -- Murray --- ICQ 71997575 Adobe Community Expert (If you *MUST* email me, don't LAUGH when you do so!) ================== http://www.projectseven.com/go - DW FAQs, Tutorials & Resources http://www.dwfaq.com - DW FAQs, Tutorials & Resources ================== "shallowdeep" <webforumsuser@macromedia.com> wrote in message news:g2lniq$oon$1@forums.macromedia.com... > Hi thanks for the response, > > My template is here: > ....snip... > > I have incorrectly set up the editable regions? > > Cheers > |
|
|
|
#5 |
|
Messages: n/a
Hébergeur: |
thanks this has ed.
|
|
|
|
#6 |
|
Messages: n/a
Hébergeur: |
You have a spelling mistake on your top navigation:
"How can we male your brand work?" Male instead of "Make" I think. |
|
|
|
#7 |
|
Messages: n/a
Hébergeur: |
..oO(shallowdeep)
>thanks this has ed. Two more things that should be fixed: 1) Remove the <!-- ... --> comment tags from your 'style' element. They were only necessary for NN 3.0 or something like that, but are totally useless today and may even cause problems with XHTML (a conforming browser might see them as a comment and completely ignore your CSS). 2) XHTML is case-sensitive. There's no 'A' element, but an 'a' element. You should fix that in your stylesheet. Micha |
|
|
|
#8 |
|
Messages: n/a
Hébergeur: |
its graet explanation i ever had on htis thanks
|
|
![]() |
| Outils de la discussion | |
|
|