RSS Forums RSS
Please support our HTML and CSS advertiser: Lunarpages Web Hosting
Views: 2102 | Replies: 17
Reply
Join Date: May 2006
Location: Nigeria, West Africa
Posts: 20
Reputation: havilah is an unknown quantity at this point 
Rep Power: 3
Solved Threads: 0
havilah's Avatar
havilah havilah is offline Offline
Newbie Poster

Help Trying To Use CSS

  #1  
Jul 29th, 2006
Could someone please help me. I've been trying to figure out what I did wrongly here http://havilahandhills.com/gasstocks . I tried to use CSS to set the body text. It appears good on IE but on Opera and Firefox, it's aweful. I need help very quickly. Anyone?
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Dec 2004
Posts: 1,592
Reputation: tgreer is an unknown quantity at this point 
Rep Power: 7
Solved Threads: 35
Colleague
tgreer tgreer is offline Offline
Made Her Cry

Re: Trying To Use CSS

  #2  
Jul 31st, 2006
You need to ask a specific question, in order for anyone to help.
Reply With Quote  
Join Date: Jun 2004
Location: Hemet, CA
Posts: 429
Reputation: FC Jamison is on a distinguished road 
Rep Power: 5
Solved Threads: 18
Colleague
FC Jamison's Avatar
FC Jamison FC Jamison is offline Offline
Posting Pro in Training

Solution Re: Trying To Use CSS

  #3  
Aug 3rd, 2006
There are many things about that code that need to be fixed...but to answer your specific concern, remove the following from your text class:

display: table;
position: fixed;

Also, you cannot place paragraphs inside of a blockquote. Basically, a blockquote is just an indented paragraph...so use it in place of the p tag for indented text.
Reply With Quote  
Join Date: May 2006
Location: Nigeria, West Africa
Posts: 20
Reputation: havilah is an unknown quantity at this point 
Rep Power: 3
Solved Threads: 0
havilah's Avatar
havilah havilah is offline Offline
Newbie Poster

Re: Trying To Use CSS

  #4  
Aug 3rd, 2006
Deacon, thanks so much. I removed the stuffs you aked me to and it worked on Opera. I'm yet to test it on Firefox. BUt I think it will work. However, I didn't get what you were trying to say about the 'p' tag. If I remove that, how do I then achieve 'Paragraphing'? I also noticed that my flash animation isn't working on Opera, I don't know if it's my systems setting or it's a problem with the code. I don't know if you have an idea why.
Last edited by havilah : Aug 3rd, 2006 at 1:35 pm.
Reply With Quote  
Join Date: Jun 2004
Location: Hemet, CA
Posts: 429
Reputation: FC Jamison is on a distinguished road 
Rep Power: 5
Solved Threads: 18
Colleague
FC Jamison's Avatar
FC Jamison FC Jamison is offline Offline
Posting Pro in Training

Re: Trying To Use CSS

  #5  
Aug 3rd, 2006
Instead of
[html]
<blockquote>
<p>
<span class="style1">Gasstocks Limited</span> is a vibrant and dynamic international company operating out of Nigeria with a robust and dedicated team who owing to the influence of our core values: originality and excellence, and strengthened by a culture of pragmatism, consistently provide high quality products and services which are innovative, pragmatic and adapted to our client&rsquo;s requirements.<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</p>

<p>
Our technical staff have many years experience in specifying, supplying, supervising and undertaking works to achieve cost effective and maximum long term benefits for a our clients. This experience garnered in the industry has supported our growth and diversification in a competitive and demanding market.&nbsp;&nbsp;&nbsp;
</p>
</blockquote>
[/html]

Use

[html]
<blockquote>
<span class="style1">Gasstocks Limited</span> is a vibrant and dynamic international company operating out of Nigeria with a robust and dedicated team who owing to the influence of our core values: originality and excellence, and strengthened by a culture of pragmatism, consistently provide high quality products and services which are innovative, pragmatic and adapted to our client&rsquo;s requirements.
</blockquote>

<blockquote>
Our technical staff have many years experience in specifying, supplying, supervising and undertaking works to achieve cost effective and maximum long term benefits for a our clients. This experience garnered in the industry has supported our growth and diversification in a competitive and demanding market.&nbsp;&nbsp;&nbsp;
</blockquote>
[/html]

You can then use CSS to set the spacing between blockquotes

blockquote { margin-bottom: 10px }

of whatever spacing you wish, instead of using all of theose &nbsp;s

You haven't updated your site with the new code, but the flash appears to be working fine in Opera.
Reply With Quote  
Join Date: May 2006
Location: Nigeria, West Africa
Posts: 20
Reputation: havilah is an unknown quantity at this point 
Rep Power: 3
Solved Threads: 0
havilah's Avatar
havilah havilah is offline Offline
Newbie Poster

Re: Trying To Use CSS

  #6  
Aug 5th, 2006
Deacon, thanks so much. I just can't thank you enough. Yeah, haven't updated the site yet. Still working on it. I'll send the real link to your e-mail box later if you don't mind. As per the Flash working on Opera, maybe it's my systems setting. All my flash work don't work on opera, but some how I think I like that because it helps me know how my sites will behave in old browsers. Though I'll like to know why so I can turn it on at will.

One last question, I know using blockquote is the main thing, but breaking like I did worked just fine, didn't it or was there something I was suppose to know. Ok! maybe using that, easily gives one away as an amateur, right? LOL

Stay cool, and God bless.
Reply With Quote  
Join Date: May 2004
Location: Boston,MA
Posts: 1,362
Reputation: mikeandike22 is an unknown quantity at this point 
Rep Power: 7
Solved Threads: 17
Featured Blogger
mikeandike22's Avatar
mikeandike22 mikeandike22 is offline Offline
Nearly a Posting Virtuoso

Re: Trying To Use CSS

  #7  
Aug 5th, 2006
it doesnt work in firefox.
My Daniweb Blog: This,That, and Everything Else (Blog contest winner)

GetFirefox!
GetOpera!






Reply With Quote  
Join Date: Jun 2004
Location: Hemet, CA
Posts: 429
Reputation: FC Jamison is on a distinguished road 
Rep Power: 5
Solved Threads: 18
Colleague
FC Jamison's Avatar
FC Jamison FC Jamison is offline Offline
Posting Pro in Training

Re: Trying To Use CSS

  #8  
Aug 5th, 2006
Yes, it works...it's just bad coding. If you were to try and validate your code, you would receive errors.

If you want to be a good Web designer, you should start learning the proper coding methods now. It will save you a lot of headaches in the future.

Mike, what didn't work in Firefox?
Last edited by FC Jamison : Aug 5th, 2006 at 8:27 pm.
Reply With Quote  
Join Date: May 2006
Location: Nigeria, West Africa
Posts: 20
Reputation: havilah is an unknown quantity at this point 
Rep Power: 3
Solved Threads: 0
havilah's Avatar
havilah havilah is offline Offline
Newbie Poster

Re: Trying To Use CSS

  #9  
Aug 6th, 2006
Deacon, thanks once more. There's something I'm thinking you could show me. Someone had tried to post it here before, but I didn't understand it. Maybe you can help me. It's about using CSS to add shadow to a page. If you noticed that page has shadow, but that shadow came with an image. I can get a way with it like that, but that could be limiting. Better still, I'll prefer to learn the proper thing, since there's a better way. Can you help with some explanation, that I can understand?
Last edited by havilah : Aug 6th, 2006 at 2:27 pm.
Reply With Quote  
Join Date: Jun 2004
Location: Hemet, CA
Posts: 429
Reputation: FC Jamison is on a distinguished road 
Rep Power: 5
Solved Threads: 18
Colleague
FC Jamison's Avatar
FC Jamison FC Jamison is offline Offline
Posting Pro in Training

Solution Re: Trying To Use CSS

  #10  
Aug 6th, 2006
Do you mean something like this?


[HTML]
<div style="width:272px;padding:10px;filter:shadow(color:gray); overflow: visible">
<div style="width:250px;text-align:left;padding:10px;background-color:gold;border:1px solid black;font-size:10px;">
This is an example of the shadow filter in action.
You can make the box any size you want and have any color background you desire.
</div>
</div>
[/HTML]

NOTE: This only works in IE
Last edited by FC Jamison : Aug 6th, 2006 at 9:41 pm.
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 1:46 am.
Newsletter Archive - Sitemap - Privacy Statement - Acceptable Use Policy - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC