PHP Web Host - Quality Web Hosting For All PHP Applications Free RavenNuke(tm) Add Ons
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.
Author Message
Admin32
Regular
Regular


Joined: Sep 14, 2003
Posts: 74

PostPosted: Tue Nov 18, 2003 5:26 am Reply with quote Back to top

Hi everyone,

I've been trying to create a new block that will display a selection of a few downloads I will choose.

The problem is that throughout my site, I use a medium sized font, which works out nicely for all the main pages, but isn't the case for the small block Im creating.

As such, the block's contents uses the same font size the main CSS sheet contains.

I would like to find out how I can overide these settings for the particular block. I have tried setting my own font size, but as one would expect, it is overided by the CSS setting.

Any ideas or suggestions ?
View user's profile Send private message Visit poster's website
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 16987
Location: Kansas

PostPosted: Tue Nov 18, 2003 6:16 am Reply with quote Back to top

To override a style sheet you have to use an in-line style property. Use a div or a span tag with a style property. I'm pretty sure I have some posts on that in the forums somewhere.
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
Admin32
Regular
Regular


Joined: Sep 14, 2003
Posts: 74

PostPosted: Tue Nov 18, 2003 7:19 am Reply with quote Back to top

Thanks for the reply Raven.

I had tried in-style ccs but they never worked. I've just managed to find what I did wrong and its sort of working now, so I just need to play with it more.
View user's profile Send private message Visit poster's website
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 16987
Location: Kansas

PostPosted: Tue Nov 18, 2003 7:25 am Reply with quote Back to top

Post your code if you need help because I have never seen a case where in-line style did not override a style sheet.
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
Admin32
Regular
Regular


Joined: Sep 14, 2003
Posts: 74

PostPosted: Tue Nov 18, 2003 2:30 pm Reply with quote Back to top

Here's the code Raven:

<?php
if (eregi("block-Top_Downloads.php",$PHP_SELF)) {
Header("Location: index.php");
die();
}
$content = "<div STYLE=\"font-size: 12px; margin-left: 0px\"> ";
$content .= "Security Scanner- <a href=\"http://www.firewall.cx/downloads/secscan.zip\">Grab!</a><br>";
$content .= "System Monitor- <a href=\"http://www.firewall.cx/downloads/sysmon.zip\">Grab!</a>";
$content .= "Iris Sniffer- <a href=\"http://www.firewall.cx/downloads/packet-sniff/iris%20v3.7.zip\">Grab!</a><br>";
$content .= "Dr TCP- <a href=\"http://www.firewall.cx/downloads/Network%20apps/drtcp021.zip\">Grab!</a><br>";
$content .= "</div>";
?>

The only part I haven't managed to fix is making the "grab" link maintain its correct size. It seems like its obtaining the A:Hover and A:Visited references from the original theme CSS and no matter what I have tried, I can't get it to change to something else. I could be the one in fault here, not adding the specific type of reference correctly into the above code, so I have removed it completly.
View user's profile Send private message Visit poster's website
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 16987
Location: Kansas

PostPosted: Tue Nov 18, 2003 3:16 pm Reply with quote Back to top

Have you tried adding an in-line style property to the anchor tags? Or an in-line style property to a span tag around the text Grab ?
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
Display posts from previous:       
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2011 by Raven

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::
:: fisubice Theme Modified by the RavenNuke™ Team ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum