Webmaster Forums - Webmaster forum for HTML, PHP, ASP, CSS and more
Old 10-09-2008, 05:13 PM   #1 (permalink)
Junior Member
 
Join Date: Oct 2008
Posts: 3
Default CSS, Dreamweaver & background

Hello guys I'm trying to learn CSS and i'm having the hardest time, when I think I get it and I try it in DW it proves me wrong. I'm trying to add a background and I have a jpg to go with it. in DW I click on CSS, point it to my background and click on repeat -x once that's done I click on CSS at the bottom of DW and click on attach style sheet but when I preview my background it's not showing up. can anyone tell me how to write this for the background image myself?
philly0128 is offline   Reply With Quote
Sponsored Links
Old 10-10-2008, 12:24 AM   #2 (permalink)
Junior Member
 
fnacotton's Avatar
 
Join Date: Sep 2008
Location: USA
Posts: 59
Default Re: CSS, Dreamweaver & background

in an external style sheet, your code would look like

Code:
body {background: url('pathToYourImage.jpg');}
If you're putting it in the head of your document then your code would look like this
Code:
<head>
<style type="text/css">
body {background: url('pathToYourImage.jpg');}
</style>
</head>
<body>
Just remember, the path to your file is relevant to the style sheet if your using an external style sheet.

You find some useful information at How to CSS.
__________________
FNA Cotton, fna
CSS help | cool t-shirts | portfolio
fnacotton is offline   Reply With Quote
Old 10-10-2008, 02:53 AM   #3 (permalink)
Junior Member
 
Join Date: Oct 2008
Posts: 1
Default Re: CSS, Dreamweaver & background

if you are sure that your CSS code is right, now you could check your url address correction.
lqyromeo@hotmail.com is offline   Reply With Quote
Old 10-10-2008, 10:17 PM   #4 (permalink)
Junior Member
 
Join Date: Oct 2008
Posts: 3
Default Re: CSS, Dreamweaver & background

[IMG][/IMG]

Thanks for your replies guys, right now i'm trying to see if I can get the lynda.com video on css and trying to read up as much as I can. Right now with all my search on the web I can't find anywhere to tell me how to create a box like what you see in the middle of this page and I would also like that box to be centered. I've spent a couple ours trying and i'm still missing something. I'm more of a tables guy and it's really hard to step away from the table. If you look at this image what I would like to do is get that same box and place it in the middle of my page and at the bottom of my page I would like to have 6 small box for some thumbnail image. I even downloaded a free version of the topstyle free version I saw someone mention here but that doesn't work like they say it should, not for this anyway.
philly0128 is offline   Reply With Quote
Old 10-11-2008, 02:17 AM   #5 (permalink)
Junior Member
 
fnacotton's Avatar
 
Join Date: Sep 2008
Location: USA
Posts: 59
Default Re: CSS, Dreamweaver & background

Centering a site horizontally is pretty easy, I actually wrote a post yesterday on how to do this. Center your page content.

As for making columns, the trick is to float them all to the left or right, left is more natural, because the first one you code will bar on the left, if you float right then it seems like you're working backwards, right to left. It looks like they're using a fixed width. If your content area is 900 pixels apart and you want three equally wide columns with 15 pixels between each column, then you would set your area up like this.

CSS
Code:
div#columns {width: 900px; padding: 0; margin: 0;}
div.column1 {width: 290px; margin: 0; float: left}
div.column2 {width: 290px; margin: 0 15px; float: left;}
div.column3 {width: 290px; margin: 0; float: left;}
.clear {clear: both;}
HTML
Code:
<div id="columns">

<div class="column1">
left column content
</div><!--end left column-->

<div class="column2">
middle column content
</div><!--end middle column-->

<div class="column3">
right column content
</div><!--end right column-->

<div class="clear"></div>

</div><!--end columns-->
For the items in the column you would want to use classes to repeat the styles for multiple elements. Like for the new release area I would create a newRelease class, and then nested in the class I would have a class for the image, and float it right. I would have a class for the title, and another for the information. Actually I would probably use a definition list <dl> for the details, a definition term <dt> for the title, and the definition descriptions <dd> for the details. As for the rounded corners you can use images, or if you're not worried about the corners showing up in IE, you can use webkit and moz CSS to get the corners in Firefox & Safari.
__________________
FNA Cotton, fna
CSS help | cool t-shirts | portfolio
fnacotton is offline   Reply With Quote
Old 10-11-2008, 06:37 AM   #6 (permalink)
Junior Member
 
Join Date: Oct 2008
Posts: 3
Default Re: CSS, Dreamweaver & background

CSS design basics with Dreamweaver
Part 1: Learning about doctype
Part 2: Styling (X)HTML elements
Part 3: Margins and padding
Part 4: Defining and using class selectors
Part 5: Defining and using ID selectors
Part 6: Defining and using descendant selectors

__________________________________________________ ___________

Compra lettori dvd divx Hair Transplant Surgery
shanmarsh is offline   Reply With Quote
Old 12-08-2008, 04:48 AM   #7 (permalink)
Junior Member
 
Join Date: Dec 2008
Posts: 19
Default Re: CSS, Dreamweaver & background

Quote:
Originally Posted by lqyromeo@hotmail.com
if you are sure that your CSS code is right, now you could check your url address correction.
You can use array for that like ..../../abc.jpg



To know more on iPhone Application please visit here http://www.ymedialabs.com
ymedia is offline   Reply With Quote
Reply

Thread Tools
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are On



» Sponsors

» Links

» Affiliates
Web Hosting
Online Backup Reviews
Marketing Find
Merchant Select
SiteMap Builder
Host Compare

» Links

» Sports Network
Paintball Forum
Football Forum
Hockey Forum
Golf Forum
Boxing Forum
Lacrosse Forum
Baseball Forum
SnowBoarding Forum
Soccer Forum
MMA Forum


All times are GMT -4. The time now is 12:56 PM.


Powered by vBulletin® Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.2
Webmaster Forums