CSS help

Post Reply  
Chum
Posts: 18
Joined: Thu Jun 7, 2012
Sand$: 141.89
at some point in the last month or two my roster pages "changed." I've fixed on error - the background behind the team names....but the background behind the tables bothers me. It's spanning the whole page rather than just the area "behind the tables."

https://www44.myfantasyleague.com/2023/ ... 63872&O=07

any help would be appreciated. Likely a simple fix that I knew how to do three years ago but not dealing with it constantly I've forgotten.
User avatar
Great White Shark
Posts: 2119
Joined: Sun Jun 29, 2014
Sand$: 4,612.44
hedgehog wrote:at some point in the last month or two my roster pages "changed." I've fixed on error - the background behind the team names....but the background behind the tables bothers me. It's spanning the whole page rather than just the area "behind the tables."

https://www44.myfantasyleague.com/2023/ ... 63872&O=07

any help would be appreciated. Likely a simple fix that I knew how to do three years ago but not dealing with it constantly I've forgotten.


That site is a mess , I'd recommend installing our template that has all perfectly designed css , there are countless skins to choose from and if you then want to add a bg you can. But your site is really jacked up in every page i see. But....if you want to do something with the rosters page, here you go...

Find this and remove it.
Code: Select all
#MFLroster table table {
  background-image: url("https://i.vgy.me/pdQgNO.gif");
}


Add the following in its place.
Code: Select all
#MFLroster table table {
  margin: 0 auto;
  width: 100%;
}
#roster_column_left {
  background-image: url("https://i.vgy.me/pdQgNO.gif");
  border-radius: 0.313rem;
  border: 0.125rem solid #fff;
}
#MFLroster {
  max-width: 62.5rem;
  margin: 2rem auto 0;
}
#roster_column_middle table,
#roster_column_right table {
  border-radius: 0.313rem;
  background-image: url("https://i.vgy.me/pdQgNO.gif");
  border: 0.125rem solid #fff;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  padding:.125rem;
}
#roster_column_middle table caption,
#roster_column_right table caption {
  padding: 0.625rem;
  border-bottom: 0.125rem solid #ccc;
  border-top-left-radius: 0.313rem;
  border-top-right-radius: 0.313rem;
}
#rosterTradeLinkDIV input {
  padding: 0.313rem;
  border-radius: 0.313rem;
  outline: 0;
  border: 0;
  margin: auto 0.25rem;
  cursor: pointer;
}
_______________________________________

I am unable to answer questions about your site without a link to site or page your describing. If you dont provide a link I will not answer your post.

MFL Scripts Contributor for MyFantasyLeague.com
https://mflscripts.com/
Chum
Posts: 18
Joined: Thu Jun 7, 2012
Sand$: 141.89
it probably deserves a redo but it ain't gonna get one. thx SO much for the CSS help though