Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
making <div> contents ignore style
Old 06-01-2005, 08:21 AM making <div> contents ignore style
Cheyne's Avatar
Skilled Talker

Posts: 65
Location: Melbourne
Trades: 0
Hello all

I am creating a bar to apear on all of my websites, same bar with all of my other websites' links on it. Here is the rough html i have so far.

Code:
<div style="background-color:#0099FF">
<font color="white"><b> 
Company Name | <a href="http://www.website.com">website name</a> | <a href="http://www.website.com">websitename</a> |
</b></font>
</div>
Heres my small issue. I am placing this html immediately after the <body> tag. What can i implement so that the contents of the <div> do not take on the font, hyperlink ect's style as set out in the <body> tag of the original page.

Basically i want the div bar at the top of all my sites to be the same, regardless of the styles of the website its being placed on.

Keep in mind that i am not using css for any of the sites

I was thinking an iFrame for the bar but thats a no no for google ect.

I hope anyone reading can understand what im trying to say, im horrible at describing things.

thanks
- Cheyne
__________________

Please login or register to view this content. Registration is FREE
- Web 2.0 design zen
Cheyne is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 06-01-2005, 08:41 AM
Novice Talker

Posts: 6
Trades: 0
You say you're not using styles but then quote "<div style="background-color:#0099FF">", so you are using some css. A seperate formatted div using styles is very easy, you just assign it as a class or an id and it won't inherit the body styles, also as you want to use it on all your seperate sites to link to each other, styles are what you need.

Sorry if that's no help, I'm out of practise on straight HTML so can't remember if the menu bare would inherit the body styles, probably not if you stick it in a seperate table.
shaber is offline
Reply With Quote
View Public Profile
 
Old 06-01-2005, 02:17 PM
Experienced Talker

Posts: 46
Trades: 0
Wrap your text within a paragraph tag and add the specific style attributes you want for your bar to the opening p tag. These will overide the associated style sheet for the page and make your bar uniformed across the various sites.

HTH,
Scott Bannon
__________________
Take control of your Niche Sites & Parked Domains to earn
Please login or register to view this content. Registration is FREE
you deserve!
scott bannon is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to making <div> contents ignore style
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.40857 seconds with 12 queries