How do I change ID to a custom one?
Add this to your theme's template.php file:

function THEME_preprocess_block(&amp;$variables) {
  if ($variables['block_html_id'] == "block-views-portfolio-view-block")
    $variables['block_html_id'] = "portfolio";

}