Affiliate Marketing
Forum Search

Reply
 
LinkBack Thread Tools Display Modes

  #1 (permalink)  
Old 29-10-07
affiliate pariah
 
Join Date: Jul 2007
Location: up north
Posts: 1,055
Thanks: 22
Thanked 21 Times in 21 Posts
fizzbird is an unknown quantity at this point
  CSS Question

I am in the process of doing a redesign and everything is completely f****d up which makes this vey difficult.

So, I was wondering, for future reference, is it possible to have a template of your basic page in the CSS file?

I use a basic table layout and I know I can set all the fundamentals of formatting in the style sheet but can I say, for example, that a certain cell contains the logo image and another certain cell contains a link bar, etc?

I kind of understand the concept of Identifying specific tags but not sure how that would be written in css for a template page?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 30-10-07
tbp tbp is offline
Registered User
 
Join Date: Dec 2006
Posts: 1,999
Thanks: 0
Thanked 18 Times in 18 Posts
tbp is an unknown quantity at this point
  Re: CSS Question

Well if you give your logo cell an id, then you can get the stylesheet to put an image in that element.

However, the whole point of CSS is that the content and styling is kept separate.

You would make the template in HTML, and the styling in the CSS stylesheet. By changing the CSS you can make very different looking pages.

Its difficult to explain, but have a look at the link below to get the idea:

css Zen Garden: The Beauty in CSS Design

Its the same content, just the stylesheet changes each time
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 30-10-07
zinc's Avatar
boo!
 
Join Date: May 2006
Location: Berkshire
Posts: 670
Thanks: 0
Thanked 0 Times in 0 Posts
zinc is an unknown quantity at this point
  Re: CSS Question

Quote:
Originally Posted by fizzbird View Post
...can I say, for example, that a certain cell contains the logo image and another certain cell contains a link bar, etc?
No. CSS is only used to define element styles. It can't be used dynamically like you are asking. However, if you were to define 2 link bar styles in your CSS (i.e. linkBarA & linkBarB), set the background images, fonts etc etc and couple your template up with a scripting language (ASP, PHP, C# etc etc) then you could dynamically select the appropriate style.

Hope this helps.
__________________
Got web development?
www.zincstudios.co.uk
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 30-10-07
Registered User
 
Join Date: Nov 2003
Location: London
Posts: 524
Thanks: 0
Thanked 4 Times in 4 Posts
moredial is an unknown quantity at this point
  Re: CSS Question

You can use css with pseudo elements to add text.

When you start doing too many 'non-standard' things in css you are relying on all browsers displaying the css the same. With some browsers being (almost) css1 compliant and others a mix of css2 and css3 compliant, you really take your chances with anything that is central to the overall layout.
Even something as simple as a background image can be placed differently by different browsers.

The method is to create your page using simple html and text. Then look at it and create css elements which give the visual appearance the bells and whistles.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #5 (permalink)  
Old 30-10-07
affiliate pariah
 
Join Date: Jul 2007
Location: up north
Posts: 1,055
Thanks: 22
Thanked 21 Times in 21 Posts
fizzbird is an unknown quantity at this point
  Re: CSS Question

Thanks guys
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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 On
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
blogging/backlink question mrjibbles The Affiliate Marketing Lounge 1 14-10-07 05:06 PM
CSS inline horizontal lists gadget Widgets, Coding, AJAX, PHP - Technology & Affiliate Marketing 7 09-08-07 09:31 AM
Questions on CSS page layouts accelerator Widgets, Coding, AJAX, PHP - Technology & Affiliate Marketing 4 14-11-06 03:34 PM
IE7 - CSS Problems - Check your site! kevquinlan Widgets, Coding, AJAX, PHP - Technology & Affiliate Marketing 5 11-11-06 12:27 AM
CSS new starter renamecor Widgets, Coding, AJAX, PHP - Technology & Affiliate Marketing 15 11-09-06 10:35 PM


Affiliate Marketing RSS Feeds - Contact Us - Affiliate Marketing - Archive - Privacy Statement - Top

Content Relevant URLs by vBSEO 3.2.0 RC7