| 7:02 pm on Dec 29, 2008 (gmt 0)|
Welcome to Webmasterworld,
Did you try it like this
<a href="url">Link text</a>
| 7:49 pm on Dec 29, 2008 (gmt 0)|
Yes, i used that , but if i use it, there is a line appearing, like a underline with a link instead of the text. Example, if i use:
<a href="#">Link text</a>, the display is : ________ . But the links in the other part of the page are working perfectly.
[edited by: BinaryBird at 7:51 pm (utc) on Dec. 29, 2008]
| 6:51 am on Dec 30, 2008 (gmt 0)|
add this to the CSS
| 3:27 pm on Dec 30, 2008 (gmt 0)|
Its still not working. Any other suggestions?
| 5:04 pm on Dec 30, 2008 (gmt 0)|
I wouldn't use non-breaking spaces and line breaks. It makes for unreadable code.
I would wrap each block of content in paragraph tags. You can then exactly set the spacing using CSS.
| 10:00 pm on Dec 30, 2008 (gmt 0)|
Do you have any style that would apply to <a> tags ?
What might be easy is to check it in something like the web developer toolbar add-on in firefox, you can then see what css is applied to an element by clicking on the element after you set "CSS/View Style Information ..."
| 10:09 pm on Dec 30, 2008 (gmt 0)|
I would make sure the HTML uses proper block elements to enclose the content (i.e. no "anonymous" blocks), and validate the HTML as 100% correct.
Only then would I use Firebug for Firefox to examine which bits of CSS are being applied to what.
| 11:35 pm on Dec 30, 2008 (gmt 0)|
Underlined text is the standard display for a link. It sounds like the links in the other part of the page have been styled to remove the link. Are you trying to match that?
| 12:11 am on Dec 31, 2008 (gmt 0)|
I must be going really blind, because I don't see any <a> tags in the code posted, nor do I see any css style declarations for a tags.
| 7:03 pm on Dec 31, 2008 (gmt 0)|
welcome to webmasterworld BinaryBird ;)
To clarify, are you saying that in the links you are trying to add you can't see the text between the <a>'s, but you can see only an "underline", or are you saying you can see text with an underline?
|<a href="#">Link text</a>, the display is : ________ . |
I second the suggestion to start by validating the html and css, and then using Firebug in Firefox to inspect the <a>'s you are trying to add (plus other elements). However, you have said you are new to css, so maybe helpful to look at the Css Crash Course [webmasterworld.com] before you do.
See Part 4 which how to style links under "anchor Pseudo Classes".
|I think he is defined certain styles for the <a> tag which i am not able to figure out. |
There could be a number of reasons for that, but read about selectors and specificity in Part 2.
|But the links in the other part of the page are working perfectly. |
Great to avoid code dumps ;), but the css for the links might make it easier to make suggestions. However, here are other things to think about while exploring with Firebug:
# whether the color of the link makes it invisible against the background / background images
# whether the "underline" is a border (not the default text-decoration:underline) with a different colour that makes it visible although the text is not
# whether there is a padding/margin applied to an element that is positioning the <a> so the text is "clipped"
have fun, and post back the css for the links if nothing helps ;)
Can you explain the reasoning for this?
|I would make sure the HTML uses proper block elements to enclose the content (i.e. no "anonymous" blocks), |