CSS Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignCSS Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old June 4th, 2004, 04:12 PM
fz105 fz105 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2004
Posts: 76 fz105 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 8 h 31 m 56 sec
Reputation Power: 5
CSS Help with Title Bar Format

Dear Friends,

I have been trying to make a stupid title bar, that i did with tables, now using css. This is what the code for a titlebar looks like in table form:
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<TR>
<TD width="10">
<img src="img_inside_article_title-bar_left.gif" width="10" height="30"></TD>
<TD colspan=2 height="30" background="tile_inside_article_titlebar_bak.gif">
<p class="left">
<span class="strong_white">&nbsp;Title</span></p></TD>
<TD width="14">
<img src="img_inside_article_title-bar_right.gif" width="10" height="30"></TD>
</TR>
</table>

and would like to convert it into css. All my attempts have been very wrong, and i need help. I'd give my css code, but it is sooo wrong.......that it would be better to start from scratch.

basically this is the idea:
(Left Corner Image)(Title area that streaches across width of web page)(Right Corner Image)
HELP

Fz105
Attached Images
File Type: gif img_inside_article_title-bar_left.gif (265 Bytes, 111 views)
File Type: gif img_inside_article_title-bar_right.gif (268 Bytes, 112 views)
File Type: gif tile_inside_article_titlebar_bak.gif (154 Bytes, 111 views)

Reply With Quote
  #2  
Old June 5th, 2004, 01:27 PM
Arnica Arnica is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2004
Posts: 31 Arnica User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 40 m 38 sec
Reputation Power: 5
This would do it
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Image headers</title>
<style type="text/css">
<!--
.header {
	font-size:15pt;
	text-align:center;
	background: url(tile_inside_article_titlebar_bak.gif);
}

.headerleft {
	float: left;
}

.headerright {
	float: right;
}
-->
</style>
</head>
<body>
	<div class="header">
		<img class="headerleft" src="img_inside_article_title-bar_left.gif">
		<img class="headerright" src="img_inside_article_title-bar_right.gif">
		This is my header
	</div>
	<div>
		<p>This is my body</p>
	</div>

</body>
</html>


Mick

Reply With Quote
  #3  
Old June 5th, 2004, 05:02 PM
fz105 fz105 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2004
Posts: 76 fz105 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 8 h 31 m 56 sec
Reputation Power: 5
Thank you Arnica, this was most helpfull....It works perfectly....

what i was doing was:

<div style="float: right"><img src="img1.gif"></div>
<div>text for header</div>
<div style="float: left"><img src="img2.gif"></div>


and what that was doing was makin the right image go onto the next line, onto a new line....so it was driving me nutts...

again tanks a bunch.


Fz105

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignCSS Help > CSS Help with Title Bar Format


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway
Stay green...Green IT