Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Web Programming > CSS > CSS Cascading Style Sheets
|
CSS Cascading Style Sheets All issues relating to Cascading Style Sheets (CSS).
Welcome to the p2p.wrox.com Forums.

You are currently viewing the CSS Cascading Style Sheets section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 19th, 2005, 07:42 PM
Registered User
 
Join Date: Jun 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Trying to replace the use of tables

I'm trying to replace the use of tables by using CSS, and want to place an image in a certain location on the page. In this case a header that is an image. I am having problems, and am not sure where. I can get it working with the following CSS and HTML.

CSS:

#topbar
{
    width: 700px;
    height 89px;
    top 0px;
    left 0px;
}

HTML:

<div id="topbar">
    <img src="images/topbar.jpg">
</div>

The problem with this is that the topbar.jpg is stuck in the html file, and I want it in the css file so that I can use the code in multiple pages without having to add it in all pages. I tried other ways, but the image wouldn't show up for some reason. I know this is pretty simple, but I have only been learning css for 2 days, and am having trouble finding the answer. Any help would be appriciated.

Thanks in advance.
 
Old June 21st, 2005, 11:13 PM
Registered User
 
Join Date: Jul 2004
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to sfs00784 Send a message via MSN to sfs00784
Default

<style type="text/css">
<!--
#topbar {
    width: 700px;
    height: 89px;
    top: 0px;
    left: 0px;
    background:url(pic/knetbbs.gif) no-repeat center left;
}
-->
</style>

|:|KUNG|:|
 
Old June 24th, 2005, 06:42 AM
Friend of Wrox
 
Join Date: Mar 2004
Posts: 357
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to anshul
Default

You see www.workingwith.me.uk






Similar Threads
Thread Thread Starter Forum Replies Last Post
creating tables within tables in access??? carswelljr Access 3 August 23rd, 2006 01:21 PM
Replace crmpicco VB How-To 15 May 20th, 2005 01:34 PM
replace() Missy_K Javascript 1 January 16th, 2004 11:17 AM
Replace . by , Lukas C# 1 October 24th, 2003 10:44 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.