1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

How Can I Accomplish This ?

Discussion in 'HTML & Website Design' started by surimaribo, Jul 20, 2016.

  1. #1
    surimaribo, Jul 20, 2016 IP
  2. kk5st

    kk5st Prominent Member

    Messages:
    3,497
    Likes Received:
    376
    Best Answers:
    29
    Trophy Points:
    335
    #2
    Oh crap. Throw that thing out and start over. There is no excuse for such bloated code in so simple a layout.

    But, if you're not going to listen to good advice...

    Find* the css for the first box and delete the float, width and margin-bottom properties. Look further on, the bottom margin is applied (with different values?!?) in three or four other places. That's it. Let the box be its natural self.

    Now find the box that holds the other two widgets. Make it {overflow:hidden;}. That causes it to contain its float children.
    Now, the two widgets, make both {width: 48%;}. Make one widget {float: left;} and the other {float: right;}. Again, delete the margin-bottom from several places in the styles.

    That is one way to fix the layout more to your liking. There are other approaches, some may be better, others worse. Best is to toss that poorly written theme and write a proper page with sane coding practices.

    BTW, if you use main, article or section tags (and some others IIRC) the first heading tag in that element must be h1. That isn't done on this page.

    cheers,

    gary

    * By find, I mean to open Firebug in Firefox and select the element of interest. You will be shown all the css that applies to that element.
     
    kk5st, Jul 20, 2016 IP