Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Overriding HTML styles with CSS

  • This topic is empty.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #35083

    I’m trying to style a simple login portal for a client. The page code is through a 3rd party that will only allow access toe the CSS stylesheet. The page itself (which I don’t have access to) has a number of nested tables with defined widths.

    Having access only to the stylesheet, is it possible to override the table column widths using CSS? I’ve been able to adjust some parameters using #tableid .style:nth-child(2) but I haven’t been able to get the width to work.

    Is it possible? Any suggestions?

    #90324
    jamygolden
    Member

    Try

    #tableid .style:nth-child(2n) { property: value !important; } 
    #90326
    Paulie_D
    Member

    It may not be possible as the width’s may be specified as inline styles which would overwrite (I think) and CSS sheet.

    #90327
    jamygolden
    Member

    @Paulie_D you can override inline styles with !important. Check out this article.

    #90332
    Paulie_D
    Member

    @jamy_za Thanks for that…good to know.

Viewing 5 posts - 1 through 5 (of 5 total)
  • The forum ‘CSS’ is closed to new topics and replies.