Submit Your Article Forum Rules

Results 1 to 4 of 4

Thread: Inline Styling For Hyperlinks

  1. #1
    Senior Member
    Join Date
    Aug 2007
    Location
    Manitou Springs, Co
    Posts
    183

    Inline Styling For Hyperlinks

    Hello,

    I am confused why the inline styling is not working in the following example. The hyperlink does not space down from the div it is contained in. I am viewing the page in IE6.

    Code:
    <div style=" height:345px; width:245px; border: 1px solid black; float:left;">
    <a href="index.html" style="margin:5px 0px 0px 7px;">Home</a>
    </div>
    Website design & development by Randy.

  2. #2
    Senior Member MuNKyonline's Avatar
    Join Date
    Jun 2004
    Posts
    779

    Re: Inline Styling For Hyperlinks

    Add padding to the div?

  3. #3
    Senior Member
    Join Date
    Aug 2007
    Location
    Manitou Springs, Co
    Posts
    183

    Re: Inline Styling For Hyperlinks

    Tried putting padding for the div "padding: 0px" but that does not help. I really do not want to move the hyperlink down using the div styling. I do not know why the hyperlink styling does not work.

    Also displays the same in firefox
    Website design & development by Randy.

  4. #4
    Senior Member spiderbait's Avatar
    Join Date
    Oct 2003
    Posts
    268

    Re: Inline Styling For Hyperlinks

    Can you post a link to the page with the problem?

    Also, you might look here for some answers:
    SitePoint CSS Reference

    It could be an IE6 bug and you might find it referenced here.
    Jade Burnside, Ahead of the Web
    What good is your web site if no one can find it?
    SEO & Optimized Web Site Design

Similar Threads

  1. CSS: <label> ignores width styling
    By hughes in forum Graphics & Design Discussion Forum
    Replies: 4
    Last Post: 10-27-2009, 07:12 PM
  2. CSS styling for HR
    By ArthurKay in forum Graphics & Design Discussion Forum
    Replies: 3
    Last Post: 09-09-2007, 07:19 AM
  3. Styling <ul> as <select>with CSS
    By thindenim in forum Graphics & Design Discussion Forum
    Replies: 2
    Last Post: 06-05-2007, 03:45 PM
  4. Styling Content with and without CSS
    By Dcrux in forum Content Discussion Forum
    Replies: 19
    Last Post: 02-07-2006, 05:30 PM
  5. Super Styling with a Dedicated CSS Editor
    By WPW_Feedbot in forum Graphics & Design Discussion Forum
    Replies: 0
    Last Post: 06-21-2005, 07:06 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •