|
|
||||||
|
||||||
| Index Link To US Private Messages Archive FAQ RSS | ||||||
| Graphics & Design Discussion Forum Post your graphics design questions/comments/ideas in here. Ask questions, post tutorials, discuss trends and best practices. Sub-forum for website accessibility and usability. |
Share Thread: & Tags
|
||||
|
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
I am currently constructing a new website and am having some issues with IE. In Firefox on PC, Safari/Firefox on a Mac the h1 tag displays perfectly with 'WEDDINGS CATERING' all on one line, but in IE it is splitting the h1 and h1subheading onto two lines
http://www.imaginez-cannes.com/demo/..._catering.html Any ideas what I'm doing wrong of how to get around it? Many thanks Ben |
|
|||
|
OK, changed the css to:
h1 { margin: 0; font-family: Arial, Helvetica, sans-serif; color: #FF6633; font-size: 20px; display: inline; } .h1subheading { font-family: Arial, Helvetica, sans-serif; color: #FFFFFF; font-size: 11px; } but it still doesn't look right in IE |
|
|||
|
Hi,
Try the following. I only tested it in Firefox and IE 6 but it seemed to work fine. If it works in IE 7, just move the inline styles to your style sheet. <h1 style="float:left">WEDDINGS </h1> <h2 style="float:left; margin:0px; padding-top:8px; padding-left:2px;">CATERING</h2> |
|
||||
|
I have taken to using something like the following for things like this:
WEDDINGS <span class="small">CATERING</span> CSS as follows (whatever size you like then): .small { font-size: 0.8em; } Seems to work fine.... |
|
|||
|
A small thing but "WEDDINGS" should not be pluralized. It should just be "WEDDING CATERING".
Using the wrong tense or worse changing the tense within a sentence really shows a lack of English understanding and will not help your sales pitch. |
|
|||
|
HTML Code:
<!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" lang="en" xml:lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="language" content="en" /> <title>Lining up odd sizes inline</title> <style type="text/css"> #eg_1 h1, #eg_1 h2, #eg_2 h1 { display:inline; text-align:baseline; } #eg_2 h1 span { font-size:0.75em; } </style> </head> <body> <div id="eg_1"> <h1>WEDDINGS </h1> <h2> CATERING</h2> </div> <div id="eg_2"> <h1>WEDDINGS <span>CATERING</span></h1> </div> </body> </html> In eg_1 the title hierarchy is iffy. eg_2 maintains association and title level integrity and avoids additional structure. I'd go with what you had in mind originally. The span will inherit the alignment of its parent element, the h1, so will share the same baseline. Notice that the h1 is contained in a div, to retain block level status in the document flow. Last edited by weegillis; 12-06-2008 at 01:47 AM. Reason: additional info and corrections |
|
|||
|
Happy New Year everyone!
I am back into work this morning and have an email from this client asking for all instances of the company name to go orange. But this has caused weird results in IE on PC. As I don't have enough posts as yet I am not able to paste the hyperlink so use the link above, delete 'demo' and paste in /about_imaginez_cannes.(html) The orange Imaginez word seems to be jumping down and appearing in the middle of two other words. It SHOULD read: the Imaginez signature of inspirational ideas It reads in IE: the signature of Imaginez inspirational ideas Any ideas? I've tried adding and removing margin and padding but no success.... Ben |
|
|||
|
Might be worth looking at the errors reported by W3C markup validation.
Regards, David. |
|
|||
|
I have managed to figure out a few of the errors in my html (which I am in the process of fixing) but the following has stumped me:
Line 14, Column 88: document type does not allow element "h1" here; missing one of "object", "applet", "map", "iframe", "button", "ins", "del" start-tag. …"></a> <span class="display-none"><h1>Imaginez Cannes - Creative Food and Par The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous element. One possible cause for this message is that you have attempted to put a block-level element (such as "<p>" or "<table>") inside an inline element (such as "<a>", "<span>", or "<font>"). I've tried tweaking bits but still can't get to the bottom of it... please help!!! |
|
|||
|
Benandal,
I feel your pain because making your site work across platform is a challenge on its own. I found this tool very useful. Check Browser Compatibility, Cross Platform Browser Test - Browsershots Check it out. Good luck!
__________________
HolyInsomniac - Webmaster - The Daily Savings - LinkCity Pro Go to http://thedailysavings.com or http://linkcitypro.com |
|
|||
|
Thats a great tool - just added the site to the queue so hopefully will get some results - i've ALWAYS had problems trying to debug cross browser, I don't know where to start if I am to be honest.
Has anyone any idea why I keep getting this error: Line 14, Column 88: document type does not allow element "h1" here; missing one of "object", "applet", "map", "iframe", "button", "ins", "del" start-tag. <div id="logo"><span class="display-none"><h1>Imaginez Cannes are a wedding planning company, organising weddings at venues in Monaco.</h1></span></div> |
|
|||
|
Quote:
<div id="logo"><h1><span class="display-none">Imaginez Cannes are a wedding planning company, organising weddings at venues in Monaco.</span></h1></div> Is there any reason why you can't just apply the display-none class directly to the h1 tag and get rid of the span tag altogether? |
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| CSS Problem | dwrightcwf | Web Programming Discussion Forum | 2 | 05-10-2007 05:08 PM |
| CSS Problem in IE6 | richkoi | Web Programming Discussion Forum | 2 | 05-07-2007 02:47 PM |
| Another IE/CSS div problem I am sure someone here can fix. | MeanSEO | Graphics & Design Discussion Forum | 19 | 07-27-2006 10:29 PM |
| Problem 301- 302 | ryanforbes | Google Discussion Forum | 7 | 04-13-2006 06:42 AM |
| CSS Problem | MrLeN | Web Programming Discussion Forum | 8 | 01-06-2004 01:58 PM |
|
WebProWorld |
Advertise |
Contact Us |
About |
Forum Rules |
MVP's |
Archive |
Newsletter Archive |
Top |
WebProNews
WebProWorld is an iEntry, Inc. ® site - © 2009 All Rights Reserved Privacy Policy and Legal iEntry, Inc. 2549 Richmond Rd. Lexington KY, 40509 |