first CSS question

This is a discussion on "first CSS question" within the Web Page Design section. This forum, and the thread "first CSS question are both part of the Design Your Website category.



Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Dec 21st, 2007, 21:18
Junior Member
Join Date: Dec 2007
Location: Minnesota
Age: 25
Posts: 34
Thanks: 0
Thanked 0 Times in 0 Posts
first CSS question

Im wanting to learn CSS and the tutorials given here are fantastic.
But one thing i cant seem to find is exactly how do I view the CSS to see if its what i want?. I have dreamweaver and frontpage.

Can i design graphics in photshop and use them in my CSS?.

And last question.

How do i combine the CSS with the Html?.

Is it a simple matter of just linking to the stylesheet in the same sort of way that i link to graphics?.

thank you all.
Reply With Quote

  #2 (permalink)  
Old Dec 21st, 2007, 21:58
Jack Franklin's Avatar
Resources Administrator

SuperMember
Join Date: May 2007
Location: Cornwall, England
Posts: 1,288
Blog Entries: 8
Thanks: 10
Thanked 5 Times in 5 Posts
Re: first CSS question

TO link CSS stylesheet to HTML.
Inbetween <head> and </head> type:
Code: Select all
<link rel="stylesheet" type="text/css" href="linktostylesheet.css" />
To apply graphics do the following:
Code: Select all
elementnamehere {
background-image: url(path\to\image.gif);
background-repeat: repeat-x;(repeats horiz) or repeat-y; (repeats vertically) or repeat; (repeats in all directions) or no-repeat; (does not repeat)
background-position: top/left/center/right;
}
Make sure to give the element a width and height of at least the dimensions of the image. I'll try and find some links to help you out more.

Background IMages: http://www.csstrickery.co.uk/2007/10...kground-image/
__________________
Resources Administrator


Last Blog Entry: A Week with VBulletin (Aug 28th, 2008)
Reply With Quote
  #3 (permalink)  
Old Dec 22nd, 2007, 06:09
Ryan Fait's Avatar
SuperMember

SuperMember
Join Date: May 2006
Location: Las Vegas
Posts: 3,786
Thanks: 0
Thanked 0 Times in 0 Posts
Re: first CSS question

The best way to test CSS is using a server online and your browser. If you've got a Mac, it's really easy to set up a local website that you can run without having to wait for uploads.
Reply With Quote
  #4 (permalink)  
Old Dec 22nd, 2007, 08:00
Marc's Avatar
Moderator

SuperMember
Join Date: Apr 2007
Location: Scotland, UK
Age: 15
Posts: 1,662
Thanks: 0
Thanked 9 Times in 9 Posts
Re: first CSS question

Yep, Ryan is right. You can also test locally if you have windows too: http://www.apachefriends.org/en/xampp.html.
Reply With Quote
  #5 (permalink)  
Old Dec 22nd, 2007, 11:52
Ryan Fait's Avatar
SuperMember

SuperMember
Join Date: May 2006
Location: Las Vegas
Posts: 3,786
Thanks: 0
Thanked 0 Times in 0 Posts
Re: first CSS question

I love shorthand as well, so all the lines Jack wrote can be condensed into:

Code: Select all
background: url(image.gif) left top no-repeat;
Just remember that for positioning a background image, horizontal placement comes before vertical placement. "top left" is not correct. It should be "left top".
Reply With Quote
  #6 (permalink)  
Old Dec 22nd, 2007, 11:58
SuperMember

SuperMember
Join Date: Sep 2006
Location: Pink House
Posts: 3,946
Thanks: 0
Thanked 0 Times in 0 Posts
Re: first CSS question

In Dreamweaver, You need to set up the site in the site manager. Then when you want to preview what you have done so far, you just click F12 and it opens the test browser. Open up the "help" files or manual to set up two test browsers. I test in FF and IE7. Then I manually test in IE 6.
Reply With Quote
  #7 (permalink)  
Old Dec 22nd, 2007, 14:32
Jack Franklin's Avatar
Resources Administrator

SuperMember
Join Date: May 2007
Location: Cornwall, England
Posts: 1,288
Blog Entries: 8
Thanks: 10
Thanked 5 Times in 5 Posts
Re: first CSS question

Whenever I design I have IE7, FF & IE6 all open at the same time.
__________________
Resources Administrator


Last Blog Entry: A Week with VBulletin (Aug 28th, 2008)
Reply With Quote
  #8 (permalink)  
Old Dec 22nd, 2007, 18:32
Junior Member
Join Date: Dec 2007
Location: Minnesota
Age: 25
Posts: 34
Thanks: 0
Thanked 0 Times in 0 Posts
Re: first CSS question

thanks for all the help.

When i making a site using HTML i have always been prone to using frontpage as i can hit the preview button and see instantly what its looking like.
Ive made a test template using CSS, nothing major just a test template so i can get a feel for CSS. I must say that CSS is not as difficult as i had thought. Ive been using the tutorial sites and W3schools site to learn.
Most of my time has been spent on trying to figure out how to combine all the different features to get everything where id like it.
Ive along way to go yet but im feeling positive with my progress.
I will post up what ive done when i feel ready.
Reply With Quote
  #9 (permalink)  
Old Dec 22nd, 2007, 19:45
Jack Franklin's Avatar
Resources Administrator

SuperMember
Join Date: May 2007
Location: Cornwall, England
Posts: 1,288
Blog Entries: 8
Thanks: 10
Thanked 5 Times in 5 Posts
Re: first CSS question

A good book I found which I basically learnt all my CSS from is
'The CSS Anthology - 101 Essential Tips, Tricks and Hacks' by Rachael Andrew.'


Anyway, good luck.
__________________
Resources Administrator


Last Blog Entry: A Week with VBulletin (Aug 28th, 2008)
Reply With Quote
  #10 (permalink)  
Old Dec 22nd, 2007, 20:02
SuperMember

SuperMember
Join Date: May 2007
Location: UK
Age: 27
Posts: 1,111
Thanks: 0
Thanked 0 Times in 0 Posts
Re: first CSS question

Quote:
prone to using frontpage
What an apt phrase. Much like, "prone to injury".

Don't take it lying down (ho, ho, ho). Stand up to Frontpage. Walk away, and never allow Frontpage to abuse you again.
Reply With Quote
Reply

Thread Tools

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Php Question longstand PHP Forum 4 Oct 21st, 2007 01:12
another question please....... napstar Starting Out 3 Feb 20th, 2007 22:28
css question Daniel Web Page Design 29 Feb 16th, 2007 12:13
Question!! JacobHaug JavaScript Forum 5 Dec 28th, 2006 18:22


All times are GMT. The time now is 03:13.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43