Communauté Informatique NDFR.net : Comment faire en CSS ? - Programmation Web (HTML, PHP, ASP, Java, XML, etc.)
 
Comment faire en CSS ?
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #3  
Old 10-08-2007, 10:42
Magi-X's Avatar
Magi-X Magi-X is offline
Modérateur
1 Highscore
 
Join Date: 31-10-2002
Location: Bruxelles
Age: 41
Posts: 816
Send a message via MSN to Magi-X
Salut benjy,

Effectivement avec un HR c'est possible, d'ailleur après ton post je l'ai essaié et ça fontionne nickel sur Firefox mais internet explorer 7 ... bah c'est la cata.

Je dois travailler avec des positions absolute pour le HR et le petit texte "Spécialiste Cuisines", et le comportement n'est pas du tout le même sous IE7 (J'ose même pas essayer avec un IE < 7).

Le code html et css ci-dessous fonctionne parfaitement avec Firefox 2.x. Meme lors d'un [CTRL] + [SCROLL] ça s'agrendit comme il faut.

J'ai 2 sollution:
  1. Je me casse la tête à le faire fonctionner sur la pluspart des browsers
  2. Je laisse l'image, mais lors d'un zoom (sauf IE7) l'image ne s'agrendira pas.

HTML Code:
<div id="introduction">
	<h1>Dekeyser SA</h1>
			
	<hr />
			
	<h2>Spécialiste en Cuisines</h2>
</div>
Code:
#introduction {
	margin: 5em auto; 
	width: 40em; 
}

#introduction h1 {
	font-family: verdena, serif;
	font-size: 4.8em;
	text-align: center;
	color: rgb(32, 65, 98);
}

#introduction h2 {
	font-family: verdena, serif;
	font-size: 1.1em;
	position: absolute;
	top:9em;
	color: rgb(32, 65, 98);
	margin: 0 0 0 19em;
}

#introduction hr {
	position: absolute; 
	top:8.68em; 
	border: rgb(32, 65, 98) thin solid; 
	width: inherit;
}
Firefox


IE 7
Attached Images
File Type: jpg absoluteFox.jpg (17.2 KB, 18 views)
File Type: jpg absoluteIE.jpg (9.4 KB, 18 views)

Last edited by Magi-X; 10-08-2007 at 10:53.
Reply With Quote
 

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Comment faire Bodyguard446 Apple en général 0 25-10-2006 12:08
comment je peu faire Ospo Discussions 13 06-10-2004 12:00
comment faire une sélection sur une photo ? Michette Design Web / Graphisme 5 16-09-2004 09:37
migration access-> mysql :comment faire ?? oula1515 Programmation Web (HTML, PHP, ASP, Java, XML, etc.) 7 18-05-2004 14:12
les news dimension sur mon site, comment faire ? aragorn Discussions sur le site et/ou le forum 2 15-02-2003 13:56

All times are GMT +2. The time now is 05:07.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.