Wrox Programmer Forums
|
CSS Cascading Style Sheets All issues relating to Cascading Style Sheets (CSS).
Welcome to the p2p.wrox.com Forums.

You are currently viewing the CSS Cascading Style Sheets section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 10th, 2006, 11:22 AM
Friend of Wrox
 
Join Date: May 2004
Posts: 212
Thanks: 0
Thanked 0 Times in 0 Posts
Default border-bottom in IE6

Hi,

I have tried to apply a bottom border to a font tag like so:

The text

How come border-bottom doesn't render yet border-left does?????

Thanks
Joe

__________________
\'sync\' <cr>
The name specified is not recognized as an internal or external command, operable program or batch file.
 
Old February 10th, 2006, 11:51 AM
Authorized User
 
Join Date: Jan 2006
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Out of curiosity I tried running this XHTML document in IE6, and both the borders displayed ok, so I don't know what the problem is!

Code:
<?xml version = "1.0"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns = "http://www.w3.org/1999/xhtml">

<head>
   <title>Template</title>
</head>

<body>
The text
</body>
</html>
 
Old February 10th, 2006, 12:37 PM
Registered User
 
Join Date: Feb 2006
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default

There doesn't appear to be anything wrong with the CSS syntax, however you shouldn't be using presentaional elements such as in your markup.

 
Old February 11th, 2006, 05:15 AM
Friend of Wrox
 
Join Date: May 2004
Posts: 212
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Why not Kong? What am I supposed to do if I want to do something different to one block of text?

Joe

 
Old February 11th, 2006, 05:54 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 425
Thanks: 0
Thanked 3 Times in 3 Posts
Default

Is it a few words in the middle of a paragraph, i.e. you can't style the para? Why do you want them different? There's probably e a better elelement that can be used. Like if it is for emphasis, use EM.

--
http://yupapa.com
 
Old February 11th, 2006, 07:53 AM
Authorized User
 
Join Date: Jan 2006
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
quote:Originally posted by interrupt
 Why not Kong? What am I supposed to do if I want to do something different to one block of text?

Joe
You can use a <span> tag for styling a couple of words within a paragraph (i.e. inline) or apply style to a <p> tag if you want all the paragraph to be styled (i.e. block-level). Using the tag is a little bit out of date and as Kong says, it blurs the distinction between structure and presentation that style sheets were implemented for.

 
Old February 17th, 2006, 07:31 AM
Friend of Wrox
 
Join Date: May 2004
Posts: 212
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Sorry, I'm a bit of a novice at CSS, being more of a Javascript monkey. Can you explain what you mean about being a presentational element as opposed to EM or <SPAN>? Do you have any good links I can follow for reading up on CSS?

 
Old February 17th, 2006, 08:03 AM
Authorized User
 
Join Date: Oct 2003
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Some good tutorial stuff here:

http://www.w3schools.com/css/default.asp

HTH

David





Similar Threads
Thread Thread Starter Forum Replies Last Post
asp labels with border-bottom fonpeee CSS Cascading Style Sheets 13 August 29th, 2007 03:49 PM
privacy footer not getting placed at the bottom Cyber Shiva HTML Code Clinic 1 July 17th, 2007 06:34 PM
Text chopped from bottom leo_vinay Crystal Reports 1 August 4th, 2006 12:08 AM
check if a cell has a bottom border crmpicco Excel VBA 2 January 10th, 2006 07:19 AM
Need help with Radio Bottom pjdas JSP Basics 0 November 21st, 2003 02:12 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.