Our basset is 10 months old now, and we had this issue with her when we were trying to get her to space out her bathroom breaks - she would instead just pee on the floor in between going outside to pee (we also live in an apartment building) - I realized we just had to accept the mini stages of understanding - each time she would pee in the house, at first I would put her in her crate after scolding her but then realized she wasn’t getting it because she would then pee somewhere inside and then go to her crate - so then I would just scold her, but have her stay out of her crate. She had a few accidents in the hallway / stairs / elevator but each time there was a learning moment and she improved her understanding and ability to space out her need to pee. Now I take her out 4 times a day, at regular intervals and she’s doing great. So I guess my suggestion would be to start the process of spacing out the pee breaks understanding that your pup will make mistakes and those are opportunities to help her understand - a lot of it is just training them to not pee at every single urge to pee that they have. Also make sure you praise her when you take her out and she pees - this is super important and makes a big difference.