I am still pretty new to illustrator, so I am still learning. I have a shape (pill shape) that is all white. I am trying to "fill" half of the shape with a yellow color (keeping the black stroke intact. Does anyone know how to go about this?
Start with your rectangle:
Draw a line and use the Align palette to center it in the rectangle:
Select both the rectangle and the line and use the Pathfinder palette to split the rectangle based on that line:
Delete the half you don't want and then color the other one:
Use the Align palette again to line up your new colored box with the original one:
You're left with two objects, but it does the trick.